Forums

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

How to query Xray TestRunStatus in Jira Cloud?

Jeremy Cupps August 9, 2022

In Xray for Jira Server/DC, it is possible to search for tests with a certain aggregate status using the TestRunStatus calculated field. Besides the status itself, additional options can be passed to the search that restrict the calculation to a particular version, test plan, or test environment (as documented here: https://docs.getxray.app/display/XRAY/Enhanced+querying+with+JQL).

While this particular custom field does not appear to be provided in Jira Cloud, is the same functionality provided in another manner, in either the UI or through the API? That is, is it possible to search for test issues that have a certain aggregate status in the context of a particular version, test plan, or test environment?

UPDATE: It looks like it's possible to specify the calculation strategy when retrieving a test via the GraphQL API; however, I don't see any capability to search for issues by this status, which can be done in Server/DC using JQL:

TestRunStatus = "TESTPLAN-1234 - PASSED"

 

1 answer

0 votes
Jeremy Cupps August 9, 2022

<DELETED>

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 11, 2022

Hi @Jeremy Cupps ,

could you solve the problem?

Best
Stefan

Jeremy Cupps August 12, 2022

Hi @Stefan Salzl, based on Xray's documentation it looks like this just isn't possible using JQL, but I was hoping to get confirmation and/or a suggested workaround.

Thanks

Brecht Van Poucke
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!
January 25, 2024

@Stefan Salzl @Jeremy Cupps were you able to find a workaround for this ?

Suggest an answer

Log in or Sign up to answer