How can I trigger a Jira automation rule when a Test is added to a Test Set in Xray?

Álvaro López September 5, 2024

Hello!

I'm working on setting up a Jira Automation rule to automatically transition a Test Set to "In Progress" when the first Test is added to that Test Set in Xray. However, I'm running into difficulties because this relationship between Test Sets and Tests in Xray is not a standard Jira issue link relationship.

I initially considered using the "Issue Updated" trigger, assuming that adding a Test would update the Test Set. However, it seems that simply adding a Test to a Test Set doesn't trigger an update on the Test Set itself, meaning the rule doesn't run.

What would be the best way to trigger an automation rule immediately when a Test is added to a Test Set in Xray? Are there any best practices or workarounds for this specific type of action in Jira/Xray?

2 answers

2 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 5, 2024

Hi @Álvaro López 

Xray doesn't seem to offer this in automation as you discovered.

I looked at maybe a possibility to send a web request via automation to the xray API, but the API has no calls for this.

You might want to reach out to xray support and see if they might have a solution.

If so could you post it in this thread, I'm interested as well.

Álvaro López September 6, 2024

Hey @Marc - Devoteam 

thanks for your answer, I already asked to Xray support without success. 

 

I'm not sure if I understood your comment about sending web request to the Xray API. I have successfully built automations rules using Xray native actions sending request to their graphql api, for example to add Tests into Test sets or Test executions. The challenge here is to catch a Xray native action to set it as the trigger of the whole rule execution. 

:)

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 6, 2024

Hi @Álvaro López 

There is no Xray native action that can be used as a trigger in automation.

There you might want to reach out to xray support and see if they might have a solution.

Or if they have option to have custom triggers in automation like other apps do, it might be on their backlog.

0 votes
Manuel
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.
October 19, 2024

Unfortunately, this is not currently possible.

I would recommend reaching out to Xray support team so you can provide that as a feature request.

I don't see any workaround for it, at least something that wouldn't be super cumbersome. You could implement some periodic rule using Jira Automation, to get info about the Test Set once in a while.. but that would be a hard path.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events