Close parent issue when all sub-tasks are closed – JSU use case
Do you want to make your parent issue close when all the issues in it are closed?
JSU Automation suite for Jira workflows can help you automate it.
Check how to set up the JSU post-function ‘Linked transition’.
How to configure this workflow
Go to your project settings and click to edit your workflow.
Choose the transition you want to add your post function in. In this case we will choose the ‘Done’ transition number 31
Change to the post functions tab and add a post function. Choose the ‘Linked transition’ post function from the menu and add it.
Now configure your post function. You want your epic to turn to done when all tasks are done, so choose your transition to be triggered on Epic.
Choose the transition you want the epic to perform when the issues are done. Here we want the epic to turn to Done too. Make sure you choose the Done transition with the corresponding number – here it’s 31.
You don’t need to add a resolution to the done transition. In case you want one, you have to make sure that the resolution field is visible on the transition screen.
Since we only want to close the Epic when the last task is closed, we need to configure the status of the sibling issues. In this case we choose the status “Done” so that the linked transition will be executed only if all tasks in the Epic are done.
Click add to move on with your JSU automation and publish your workflow.
Now go to your Epic and turn all the tasks to “done”.
Your epic status is now “done” too!
You can configure the same automation process for any parent and sub-tasks you need.