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"