'custom job status for awx/ansible tower workflows

AWX/Ansible Tower has it's own REST API service. From the below url structure i can get information about an in progress or finished workflow job:

https://<awx-ip>/api/v2/workflow_jobs/<job-id>/

But the "status" field at this url doesn't show the value i desire. If the templates that run in this job didn't get an error during execution, the value always shows a "successful".

So i need a way to show my desired job status by this rest api service. Maybe below field can be edited, but i don't know how:

"job_explanation": ""

I only need a field to serve a custom status about the ongoing or completed job. For example "partial", "failed", "successful", "ongoing" etc.

How can i edit or add a field during the ongoing job and after it is completed. Is there a way to manipulate the fields on rest api's job stats?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source