Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Xray auto achieves test runs against global test achieving setting

Edited

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 yeartest_run_setting.png

"""{
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_run_2.png

Test created date as show below:


Screenshot from 2021-12-13 14-37-14.png

1 answer

Hi @justin okoli 

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]

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: Fine Software

Happy New Year, everybody! What better way to kick off 2022 than with a new Marketplace Partner Spotlight ✨ This month, we're getting to know Daniel Franz, co-founder of Fine Software. Fine Software ...

428 views 2 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you