I'm trying to retrieve all tests from a Jira project. I tried retrieving the tests using the Jira API but I encountered a problem where the Jira API always returns ALL 9000 tests even if I set the max number of returned items to 200. However, the issue doesn't happen when I try to retrieve other issue types (epic, bugs, etc.). My questions are...
Hi @kbalcora ,
You can use the api listed for the ZAPI from the below link.
Please note that zapi is completely free and you are just a request away to validate if zapi is installed and the apis are working as expected.
Please note that for the recent versions of zapi it is not necessary to have zapi installed as the end points are already exposed.
We already use ZAPI to retrieve the test executions. In fact we have another topic asking about test executions.
So our questions are
Test issue type is one of the issuetype in jira like story, bug, epic etc. So to fetch the testcases you have to use the JIRA Api. I'm able to get the proper results from jira for "Test" issue type. There is no api from ZAPI to fetch the test cases, zephyr also uses jira api to fetch the test case details, since its stored at jira end
Attached the sample request and response for your reference
Note: if we keep changing the max results and startAt values, you can get proper results
Please refer jira documentation for more details:
Thanks for the help, Jagadeesh, Bibek!
@kbalcora, do the suggestions posted here help you resolve the issue? Please share with the Community the solution you decided to use.