Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

What is the JQL query to retrieve the XRAY tests linked to a specific issue?

I have an epic with tests that have been linked to it.  

What is the JQL query that can retrieve all tests that are linked to the issue ?

2 answers

Hey Kristina,

One of these should meet your needs: https://docs.getxray.app/display/XRAY/Enhanced+querying+with+JQL

Is there anything that is missing to cover your use case?

I thought these enhanced queries only worked for Xray Server and not for Xray Cloud. Is that still the case?

@Rawan Bardini yes you're right. This is a link to the server/DC docs. I'll post another answer

Like Rawan Bardini likes this

@Kristina Leclerc Tests should be linked to requirements issues with standard Jira links.

You can find issues that are linked to your epic with:

issue in linkedIssues("MYEPIC-123", "is covered by")

If you only have a handful of issue keys you want to check this search should work just fine but if you have more advanced use cases you should consider using our JQL extensions. If you install

you'll be able to check the tests linked to issues that match your custom criteria. For example:

issue in linkedIssuesOfQuery("project=SP and fixversion=earliestUnreleasedVersion()", "is covered by")

to find all tests linked to the tickets in new version. You can check more in the docs.

Let me know if this helps!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...

445 views 2 17
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you