Automation rule on Xray 'Test Set' to move the linked tests to status 'Done' when it moves to 'Done'

Ayush Singhal May 17, 2024

Hi Jira Community

I am using XRay as a test management tool in my Jira project and hence looking for a solution for an Automation Rule in Jira:

The rule states as below:

When XRay issue type 'Test Set' is transitioned to the workflow status 'Done' from any other status

Then All the issue types called 'Tests' that belongs to this Test-Set are also moved to workflow status as 'Done'.

 

I tried multiple ways but nothing works. Please guide.

 

3 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Geethanjali Katagani
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.
May 28, 2024

@Ayush Singhal ,

There is no relation between test sets and tests because these are managed under the Xray plugin. For this issue, please contact the Xray vendor.

https://marketplace.atlassian.com/apps/1211769/xray-test-management-for-jira?hosting=cloud&tab=support

0 votes
Geethanjali Katagani
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.
May 27, 2024

Hi @Ayush Singhal ,

In between the branch and action, you need to add a JQL condition.

 

Ayush Singhal May 27, 2024

Hi @Geethanjali Katagani 

This is how my rule looks. Do you see any problem here?

image (5).png

Ayush Singhal May 27, 2024

Here you can see TAT-1124 has only 4 tests but it transitioned 218 tests

image (3).png

image (4).png

Geethanjali Katagani
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.
May 27, 2024

 

In the 'Branch' section, select the correct relation of the issues. After that, add the condition. Here, I have selected all linked issues of trigger issues.AC5.JPG

If you have any confusion, please share a screenshot of your ticket.

Ayush Singhal May 27, 2024

 @Geethanjali Katagani 

These tests are not exactly the linked issues to the Test Sets in XRay but are kind of subsets to them. Hence, I don't think 'Linked Issues' filter would work here. Below is the screenshot of the Test Set with some Tests

Below you could see the tests are not part of the 'Linked Issues' but are listed separately under 'Tests'

image (6).png

0 votes
Geethanjali Katagani
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.
May 17, 2024

Hi @Ayush Singhal ,

I have a question regarding the relationship between test sets and tests. Specifically, is there a hierarchical or linked relationship between them, such as a test set being the parent and the individual tests being subtasks?

Regards,
Geethanjali

Ayush Singhal May 17, 2024

@Geethanjali Katagani 

The 'Test' and 'Test Set' are standard XRay issue types. They tests are not exactly the subtasks of the test sets but the collection of tests forms a test set.

Also, The tests in XRay could be a part of multiple test sets.

So there is no hierarchy and not directly linked to each other in Jira way.

Geethanjali Katagani
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.
May 17, 2024

@Ayush Singhal ,

AC 3.pngPlease try to create automation like this.

Regards,
Geethanjali

Ayush Singhal May 17, 2024

@Geethanjali Katagani 

Thank you for the quick response. This solution does not work very well. It transitions all the issues with type 'Test' in the entire project to 'Done' while I am looking for a query that only transitions the 'Test' in that 'Test Set'.

 

 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events