The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Is there a way to automatically transition a task issue once all of it's sub tasks are completed?

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

Jeremy Price
Contributor
April 7, 2017

    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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Rachel Wright
Community Champion
April 7, 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.)
Jeremy Price
Contributor
April 10, 2017

This worked perfectly. Thank you for the help.