Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Jira Xray is globally set to achieve test runs older than one year, but this setting is not honoured by Xray as test runs even as fresh as 3 weeks are achieved, The only way to view the past history of these test runs is to click on the "warning that this test execution have achieved test runs",
This may be OK for workflow where the user have to interact manually with JIRA's front-end but very limiting for automated workflow.
Querying for sets of data(test execution) using API call does not return test run entries for test which are achieved, neither does it provide any clue on how to retrieve them.
How can I retrieve the test run entries of achieved test execution via API calls?
How can I disable this feature to auto achieve test runs that are not older than the configured threshold.
Why does an API call to the GraphQL not return test run details of test execution which are achieved.
Example :
Query below returns zero test runs, because the test run which fell within the time range has been achieved against the global achieving setting of 1 year
"""{
getTestExecutions(jql: "project = 'XX' AND type = 'Test Execution' AND created >= '2021-11-19 12:00' AND created < '2021-11-23 12:00' ", limit: 100) {
total
start
limit
results {
issueId
tests(limit: 100){
total
results {
issueId
testType{ name }
steps { data result action }
}}
testRuns(limit: 100){
total
results {
comment
startedOn
status{
name
description
}
testType{name }
test{ issueId lastModified jira(fields: ["summary", "key" ]) steps { action data result }} } }
jira(fields: ["summary", "key", "customfield_11020"])
} }}"""
Quering the Jira frontend i have about 64 entries but each entry showing this messgae:
Test created date as show below:
Xray also archives based on a fixed limit of 50 Test Runs per Test. If this limit is exceeded, older Test Runs are candidates to be archived automatically as well. Test Runs in analysis scopes do not count for this limit.
Please check this documentation page with some additional information (https://docs.getxray.app/display/XRAYCLOUD/Test+Run+Archiving).
Also, it is best to contact Xray Support (http://Xraysupport.getXray.app) to share your configuration so that we can better understand your use case and look for options.
Thank you.
Kind regards,
Rogerio Paiva [Xray Support Team]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.