Forums

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

Jira XRay - How to get Test Runs in JQL

Flu Jerky (FluJerky)
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!
July 28, 2025

I'm having issues gathering test runs for a saved filter of test executions.

Basically, our test executions tied to a story could contain 1 or 100 test cases.  So a single execution can contain more than one test run.

I have a filter to gather test executions tied to a specific fix version.  However, when I try to define test runs using said filter I'm getting nothing.

Any help?

I tried using a filter for stories and then another filter based on those stories or even test scripts having a specific fix version tied to them.  Best I can get with testTestExecutions is actually the Test Executions and not the Test Runs that I want.

2 answers

Suggest an answer

Log in or Sign up to answer
2 votes
Francisco Fonseca _Xray_
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.
July 29, 2025

Hi @Flu Jerky (FluJerky) , 

Welcome to the community!

You’re running into this issue because Test Runs are internal Xray entities, not Jira issue types, so they can’t be directly queried using saved JQL filters in the Issue Navigator. 

That said, there are still good ways to get visibility over Test Runs linked to specific Fix Versions, Stories, or Test Executions:

  • Test Run Report: This built-in Xray report lets you inspect Test Runs across Test Executions. You can filter by Fix Version, Test Execution, or other dimensions.
  • Xray Gadgets: If you’re building a dashboard, the Test Runs List, Test Execution, and Overall Test Results gadgets can give you visibility into Test Run status, coverage, and trends.

  • Xray GraphQL API (if you’re automating) you can:

    1. Use Jira JQL to fetch the relevant Test Executions for a given Fix Version.

    2. Pass those issue keys into the getTestRuns query to get all associated Test Runs. 

If you could clarify your end goal, I’d be happy to guide you more specifically 😊 

Best,
Francisco

 

0 votes
Flu Jerky (FluJerky)
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!
July 28, 2025

Basically....  Group of Stories for FixVersions has Group of Text Executions which have Test Runs linked to them.  I need the Test Runs.

Francisco Fonseca _Xray_
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.
July 30, 2025

Hi @Flu Jerky (FluJerky) ,

Perhaps what you're looking for can be achieved either through:

Another potential option could be by using Document Generator and the report:

I took the liberty to include the direct links for your consumption.

For Document Generator, in case you don't see the specific templates available, you can simply ask your Jira Admin to include them in the global Xray Settings. The template store can be found here: https://store.getxporter.app/

Best,
Francisco

 

Like Stefan Salzl likes this
TAGS
AUG Leaders

Atlassian Community Events