Forums

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

Automation: How to create/delete subtask depending on Components

andreea andra
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!
February 28, 2023

Hi,

I'm trying to solve this situation:

I have 3 components: A, B, C

A story can have one of them, all of them or none of them

Depending on which I have, for example:

I create Story Y and I know it will contain Components A, B, C

I want to create the subtask with name that I will give and type of subtask that I want.

If I realize during writting the story that I want to delete component B, I want the subtasks which are related to component B to be deleted, or if I realize that I want to add component B back, I want to be created automatically subtasks with the type and name as defined.

 

Do you have any idea how to do this?

Thanks!!

1 answer

0 votes
Bill Sheboy
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.
February 28, 2023

Hi @andreea andra -- Welcome to the Atlassian Community!

If I understand what you described with this...

If I realize during writting the story that I want to delete component B, I want the subtasks which are related to component B to be deleted, or if I realize that I want to add component B back, I want to be created automatically subtasks with the type and name as defined.

That is not possible with an automation rule. 

While writing a story, it is not yet saved.  Automation rules can trigger after an event has occurred, such as saving the new story.

What you could do is have a rule which detects later changes to the components, and then adds/remove sub-tasks...if your combinations/scenarios are not too complex.  You may want to include conditional logic which does not change the sub-tasks once they are in-progress or done.

Kind regards,
Bill

andreea andra
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!
March 2, 2023

Hi,

Indeed, I have used triggered by a transition and then I added "IF" conditions with the components and then create subtask and it;s working :)

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer