Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to query Xray TestRunStatus in Jira Cloud?


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:

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

Stefan Salzl Community Leader Aug 11, 2022

Hi @Jeremy Cupps ,

could you solve the problem?


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.


Suggest an answer

Log in or Sign up to answer