Forums

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

Automation of sub-task when test has passed

Jan Riis Sørensen
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!
September 25, 2025

Hi

I am trying to build an automation rule that does the following:

I am using sub-tasks on User stories as acceptance criteria. Each sub-task has a number of tests (Xray). 

When all tests have passed, the sub-task should be set to done, meaning the acceptance criteria has been tested and approved.

How do i set this automation rule.

bonus info: i am using Jira and Xray Cloud

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2025

Hi @Jan Riis Sørensen 

Welcome to the community.

I suspect you mean test executions are done based on the test related to the sub-task.

You will have to use Xray's GraphQL endpoint to get the Test Runs from this Test Execution: GraphQL API - Xray Cloud Documentation - Xray

Then based on if the result is that all are done, then you could transition the Jira issue.

This is all in theory as I don't have Xray.

You could also reach out to Xray support.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events