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.
Select the Post Functions tab then click Add post function.
Select the ‘Linked transition’ (JSU) post function then click Add.
Now configure your post function. You want your epic to move 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 move 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.
Watch this video to see this use case in action*:
This was only a bit of JSU in action. Subscribe to our YouTube channel and Access more JSU use cases. See also the app documentation for some more examples and configuration screenshots.
*The video is created on the Jira Server environment.