Forums

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

JQL to show Tests linked to a specific Test Plan

Morten Aavad August 26, 2019

Hi,

 

So i am trying to configure a Filter for a teams dashboard where they are tracking test cases related to a specific Test plan. Usually i would use a linkedissue JQL such as: 

issueFunction in hasLinks(tests) AND issue in linkedIssues("")

 

However since tests are not linked through the Linked Issue field this is not possible.

 

We are using Xray reports addon, but i am pretty certain that the aligning of test plan to test is not part of this.

 

Do any of you have a suggestion for what JQL to use. I am using the standard issue types "Test plan" and "Test", and i want to show all Tests under the Test Plan

 

Br,

Morten

1 answer

1 accepted

5 votes
Answer accepted
Thomas Magny-Garcia
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 Leaders.
September 2, 2019

Hi @Morten Aavad 
I think you should use JQL queries specific to XRay.
If you are using XRay Cloud "No specific JQL functions are provided, since Jira Cloud does not provide a mechanism to implement them." So I don't think you can do what you want.
Otherwise, if you are using XRay Server, this page should help you ( https://confluence.xpand-it.com/display/public/XRAY/Xray+Documentation+Home?key=XRAY) and a JLQ query like

issue in testPlanTests("SPECIFICTESTPLAN-123")

should do what you want !

 

Hope it helps !

Morten Aavad September 4, 2019

Works like a charm. Thank you! :)

Angela_Maria_Correa
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!
May 8, 2020

Hi Thomas, if I need issuestype Bug includes in a test plan, how can we generate that JQL?  Thanks

Like Axelle DE GORTER likes this
madhav g
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!
June 5, 2020

Works great - thank you

Abid Rana July 29, 2023
Nikki
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!
August 4, 2023

@Abid Rana - This link may provide the information you need.

https://docs.getxray.app/display/XRAY/Enhanced+querying+with+JQL

Suggest an answer

Log in or Sign up to answer