Forums

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

Is it possible to get all test plans associated to a project in jira with JQL or Rest API?

Sophie Hendrich June 29, 2022

Starting from a certain project I would like to get all tests associated to that project in a somewhat structured way to generate a test report. What I found out so far is that I can get a list with all tests from a certain test plan (via JQl: testPlanTests) but I can't find a way to get all test plans (or even one) that belongs to that project. Is there a JQL or rest api instruction or a workaround for that?

Best regards

Sophie

1 answer

1 accepted

0 votes
Answer accepted
Stefan Salzl
Community Champion
June 30, 2022

Hi @Sophie Hendrich and welcome to the community,

as far as I got you right this should be possible. As XRAY-issues are handled as native JIRA issues the following JQL would give you a list of test plan issues of a certain project:

issuetype = "Test Plan" and project = "<projectKey>" ORDER BY created DESC

 

Please let me know if this meets your requirement or if there any further questions.

Best
Stefan

Sophie Hendrich July 1, 2022

Yes, this helps. But there isn't a way to do this via Rest Api, right?

Stefan Salzl
Community Champion
July 1, 2022

According to following atlassian documentation I guess it should be possible

https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#searching-for-issues-examples

Unfortunately I don´t have a server environment to test. Feel free to give it a shot and let me know if it works or if there are further questions.

Best
Stefan

Stefan Salzl
Community Champion
July 6, 2022

Hi @Sophie Hendrich ,

Could you find the right parameters/call to get the right result?

 

Best
Stefan

Sophie Hendrich July 12, 2022

Sorry for the late reply. The notification email was pushed into the spam folder for some reason and then I had some problems logging in... However I'll check once I'm back at work. But so far it looks promising ^^

Like Stefan Salzl likes this
Stefan Salzl
Community Champion
July 12, 2022

awesome. thanks for the feedback 🙌🏼

Suggest an answer

Log in or Sign up to answer