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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

86 views 0 11
Read article

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