Forums

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

Can a subtask inherit the component of the story?

Michael Arndt
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.
April 26, 2019

So if a story is assigned a component I have to go through and assign the component to each subtask. Is there a way to have it inherit the story's component as I add subtasks but allow me to change or remove components as needed?

1 answer

0 votes
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 Leaders.
April 26, 2019

Hello,

You would need an app for it. There are multiple apps available: Power Scripts, ScriptRunner, Automation for Jira and other apps.

If you want to use the Power Scripts app, you could create a listener for the Issue Update event with a code like this:

string[] subKeys = subtasks(key);

for (string k in subKeys) {

  %k%.components = components;

}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events