Forums

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

Is it possible to set up automation for XRay that adds Tests to my Test Plan?

Talsma_Dalan
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!
July 29, 2022

I currently have automation set up that creates a set of Tests when a label is placed on a Test Plan. However, I have to manually add the Tests to the Test Plan once they are created. Is there a way to automatically add Tests to a Test Plan? I am seeing the field "Tests associated with a Test Plan", but so far have been unsuccessful in making that field do anything.

2 answers

1 vote
Alexey Matveev
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 Champions.
November 11, 2018

Hello,

You could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could write a condition like this:

string[] keys = subtasks(key);
for(string key in keys){
if (%key%.issueType == "required issue type" && %key%.status != "required status") {
return false;
}
}
return true;

This condition would check if a subtask with the required issue type is not in a certain status, then the transition will not be visible.

You can find more info about conditions here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows

1 vote
Nic Brough -Adaptavist-
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 Champions.
November 11, 2018

Edit the workflow, and add the "sub-task blocking" condition to the transition you want to restrict.

Mobily Monks
November 11, 2018

Sub-task blocking condition would check ALL subtasks created under the parent project.

I want only a specific subtask ex. ALPHA subtask item(s) , so once  ALL   'ALPHA'  subtask items reached to a given state X, its when the parent project task should be able to move its state from M ---> N. 

Imagine if I have subtask ALPHA and BETA during different phases of the workflow.

Since BETA subtask get created before ALPHA, when I am going to use subtask blocking condition, it would check for this condition in BETA subtask item(s) even though its not needed there.

Nic Brough -Adaptavist-
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 Champions.
November 11, 2018

No, it won't.  The sub-task blocking condition only looks at the sub-tasks on the current issue.  It does not look at the project.

Suggest an answer

Log in or Sign up to answer