How to get all the Test Executed from Zephyr JIRA API for Multiple Cycle IDs in One Shot

Is there any way to get all the test case executed details from the multiple test cycles at a time

Currently i have some 3 Cycle IDs but I am making 3 GET API calls to get from each cycle

 

https://<JIRA HOST>/rest/zapi/latest/execution?projectId=<Project ID>&versionId=<Version ID>&cycleId=<Cycle ID 1>
https://<JIRA HOST>/rest/zapi/latest/execution?projectId=<Project ID>&versionId=<Version ID>&cycleId=<Cycle ID 2>
https://<JIRA HOST>/rest/zapi/latest/execution?projectId=<Project ID>&versionId=<Version ID>&cycleId=<Cycle ID 3>

 

 Is there anyway I get all the details in one shot for Cycle ID 1 & 2 & 3

1 answer

This widget could not be displayed.

Yes, you can get execution results for multiple test cycles using Zephyr ExecutionSearchResource API and ZQL query.

Use this:

https://<JIRA HOST>/rest/zapi/latest/zql/executeSearch?zqlQuery=project="<ProjectName>" AND fixVersion="<VersionName" AND cycleName IN ("<CycleName1>", "<CycleName2>", "<CycleName3">)

 

The above URL facilitates to query for multiple projects or versions as well.

Reference: http://docs.getzephyr.apiary.io/#

Thanks :)

Anuj.

Is there any way I can restrict few fields from the Response, I dont want to get all the fields and I just want to know executedOn, How I can achieve this 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 25, 2018 in Marketplace Apps

Jira Cloud and Bitbucket Cloud Integration with Microsoft Teams

One of the newest products in the Microsoft family - Microsoft Teams,  is a chat-based hub for teamwork that integrates all the people, content, and tools your team needs to be more engaged and ...

717 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you