Hi All,
With the help of below ZAPI:
POST -- https://org-url/jira/rest/zapi/latest/execution/updateBulkStatus
Body:
{ "executions": [ "11", "22", "33" ], "status": "1" }
I am able to change the status of all test cases with id 11,12,13 to PASS
But not for all steps under that test case.
Right now I am following approach of fetching all steps and passing it one by one by below ZAPI
https://org-url/jira/rest/zapi/latest/stepResult/stepID
Is there any way to pass all the steps along with Test case like:
https://org-url/jira/rest/zephyr/latest/execution/updateBulkStatus/all
I have searched for it but there is no as such ZAPI available can I request for one
ZAPI doesn’t include an endpoint to bulk-update test step results—you can only update execution-level status with `/rest/zapi/latest/execution/updateBulkStatus`, as described in the official Zephyr for Jira Data Center API documentation. Step results are stored separately from execution objects, so each step requires its own call to `/rest/zapi/latest/stepResult/{stepId}` to change its status. There’s no supported API for cascading a test execution status change down to all its steps.
If you need all steps marked with the same status automatically, the common workaround is to script this behavior using the Zephyr REST API: first query `/rest/zapi/latest/stepResult?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.