Forums

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

How to automate a rule to change the status of Xray Test Run status when defect fixed

Fatma Diab
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!
October 2, 2025

How to automate a rule to change the status of Xray Test execution test status when the linked defect is closed.

 

if i have a test under Xray test execution, and this test is failed and a defect is raised while testing.

if this defect is closed i want to change the status of this test Run under test execution to Retest.

 

Regards

 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Valerie Knapp
Community Champion
October 2, 2025

Hi @Fatma Diab , welcome to the Atlassian Community and thanks for your post.

For automations, we would normally ask you to attempt to create the rule for yourself and then we can offer suggestions for how to make it work or to improve it.

In this situation, it depends whether these objects that you want to update are Jira work items or not.

For example, if a defect is a work item, you can use the closing as a trigger to update the Test Run, but only if the Test Run is a Jira work item. 

https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/112178 

For example, this rule is listening for the closure of one work item to take an action in another.

However, sometimes there are limitations with plugins like XRay or Zephyr that some of the objects are not Jira work items so you can't use automation with them.

Please can you try to create your own rule and if you can't get it to work, write us back showing the rule and the audit log and we will try to help.

Best wishes

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events