Forums

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

Move a subtask relative to its parent's move

Marcelo Ignacio Cid Abud
Contributor
August 10, 2022

Hello community :D,

I need your help for the following automation:

I want the child subtasks of a story to move according to the movement of their parent.

Ex: If my story is in progress and goes to the discarded state, all the issues that this story has should go to the discarded state.

1 answer

2 votes
Sam Nadarajan
Community Champion
August 10, 2022

Hello @Marcelo Ignacio Cid Abud

In your automation rule, I'd consider the following configuration:

Trigger: Issue Transitioned (specify to and from statuses at this level)

Condition: Specify that you only want to look at non-subtasks (standard issue types)

Branch Rule/Related Issues: Subtasks

Action: Transition the issue (Copy from Trigger Issue) so that the sub-tasks match the movement.

Screen Shot 2022-08-10 at 11.02.41 AM.png

You'll want to make sure that your subtasks have the same transitions available as your parent issue types, otherwise you'll get an error.

Also, you could actually avoid specifying a status in the trigger: Issue Transitioned and leave it blank so that any transition is picked up by the automation rule.

Not sure how active your instance is, but if you have a lot of issues you may run into execution limits for automation rules unless this rule only needs to run within a project. Just something to consider.

Hope this helps

Marcelo Ignacio Cid Abud
Contributor
August 10, 2022

Hi @Sam Nadarajan 

Thanks for the speed in responding to my question.

I tried the automation and it works perfectly now I have 2 queries:

1.- If I want to add 2 conditions to this automation: 1 If the subtasks are in the backlog, they must be removed from the project, 2 if they are in progress they become discarded as the parent.
2.- The idea of this automation is that it can be executed in approximately 15 projects, would I have to do a data refresh before executing the action?

Like Sam Nadarajan likes this
Sam Nadarajan
Community Champion
August 10, 2022

1 - I would add your conditions inside the "For Sub-tasks" branch in your automation rule. You can add conditions inside this branch (hover over somewhere within the branch) and either add a condition or an if/else block which would give you more flexibility. That would cover the first condition, for the second condition if you're referring to sub-tasks again I am not sure what you mean by "become discarded as the parent"

2 - You'd want to do a data refresh (re-fetch issues) if you have actions earlier in your automation rule that later conditions or actions in your automation rule reference. If you are on the premium plan, you can configure your automation rules to span multiple projects so you don't have to duplicate the same rule 15 times.

Hope this helps

Marcelo Ignacio Cid Abud
Contributor
August 10, 2022

@Sam Nadarajan Thanks again.

I have a problem with delet issue (subtask)

asd.png

Like Sam Nadarajan likes this
Sam Nadarajan
Community Champion
August 10, 2022

What error are you getting in the audit log?

Marcelo Ignacio Cid Abud
Contributor
August 10, 2022

@Sam Nadarajan 

I'm Sorry.

 

asddsada.png

Like Sam Nadarajan likes this
Sam Nadarajan
Community Champion
August 10, 2022

It looks like the conditions you've put together in the branch rule are the "Issue Fields Condition", you'll want to use the "If/Else Condition". Try that and please share a screenshot of your new configuration and audit log if it still isn't working.

Ellis Forer
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!
December 18, 2023

@Sam Nadarajan - You probably forgot about this response but just a note to say thank you! 

I stumbled on this thread while looking for the same fix and it worked like a charm!!

Really appreciate it

Ellis

Like Sam Nadarajan likes this

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