Is there a way to automatically transition a task issue once all of it's sub tasks are completed?

    I have the add-on Automation for Jira so I am able to use the JQL for my inquires. I am just not sure how I can have my tasks issue transitioned after all of it's sub taks are completed. I'm not sure how to make that connection between the taks and the sub tasks. 

1 answer

1 vote
Rachel Wright Community Champion Apr 07, 2017

Hi Jeremy, I use an add-on called "JIRA Misc Workflow Extensions" to do this.

Use Case:  When all child issues are closed, automatically transition the parent so users won't have to do it manually.

Implementation:

In the parent issue's workflow, add a Post Function, which will only be used by this automatic process.

  • Add the "Hide Transition" Condition to hide the button from regular users.
  • NOTE:  This transition cannot have any Screens or required field Validators.
  • Add a "Sub-Task Blocking Condition."  This prevents the parent from transitioning until all children are closed.
  • Example:  All sub-tasks must have one of the following statuses to allow parent issue transitions:  Closed

In the child issue's workflow, add a "Transition Parent Issue" post function to all "Close" transitions. 

  • Example:  Transition X will be triggered on the issue's parent issue.  (X is the ID of the transition in the parent workflow or the transition's name if it's unique.)
  • Move the post function to the last position in the list. (This rule must run last.)

This worked perfectly. Thank you for the help. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

42 views 2 4
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you