Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I bulk Updated Test Cases status & steps steps status using ZAPI

Sahil Zari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 18, 2025

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 

1 answer

0 votes
Mercy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 10, 2025

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?

Suggest an answer

Log in or Sign up to answer