How can i get execution IDs for multiple JIRA tests in a single API call.

Sai Teja August 12, 2019

Hi all,

I have multiple tests like (ABC-123,ABC-234,ABC-456). I know the way to get execution IDs for each of the above tests using the URL-
http://<jira-server>/rest/zapi/latest/execution?issueId=123

Since i have 3 tests, i have to execute the URL 3 times to get execution IDs for 3 tests. Is there any other way i can make a single call and get execution ID's for all the tests?

There are around 500 tests in my project and i don't wanted to make 500 calls since its time consuming. If there is any single API call through which i can get execution IDs, please let me know. 

Thanks,
Sai.

1 answer

0 votes
Lakshmi Tejas M A November 16, 2020

you are saying 

http://<jira-server>/rest/zapi/latest/execution?issueId=123

this line will give the execution id. 

i am getting like this below can you tell if i am missing something?

"issueId": 857435,
"executions": [

],
"currentlySelectedExecutionId": "",
"recordsCount": 0,
"totalExecutionEstimatedTime": "0 minutes",
"totalExecutionLoggedTime": "0 minutes",
"executionsToBeLogged": 0,
"isExecutionWorkflowEnabledForProject": true,
"isTimeTrackingEnabled": true

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events