Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
bgColor#f5f5f5
titleColor#ffffff
borderWidth0
titleBGColor#000000
titleJSU for Jira Server/Data Center

This is the documentation of JSU for Jira Server/Data Center. If you are using JSU on Jira Cloud, see our JSU Cloud documentation.

(tick) Maintain consistency across projects and get a clear view of your team's tasks

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.

...

Goal

Eliminate repetitive tasks and save time by automatically closing parent tasks

Scenario

When your team has closed all of an issue’s subtasks, the parent issue remains open and someone has to manually move it to

Status
colourGreen
titleDONE
. Let’s look at how this common task can be automated with JSU.

Components

Linked Transition post function

How to configure this workflow

  1. Go to Create a draft of your project settings and click to edit your workflow. Choose

  2. Select the transition you want to add your post function into. In this case, we will choose select the ‘Done’ transition number 31transition to

    Status
    colourGreen
    titledone
    .

  3. Select the Post Functions tab then click Add post function.

  4. Select the ‘Linked transition’ (JSU) post function then click Add. The post function configuration page displays.

  5. Now configure Configure your post function. You want your epic :

    1. We want to move an issue to Done when all

    tasks
    1. its subtasks are done, so

    choose your transition to be triggered on Epic.
    1. for the Trigger transition on all issues related as: option, we select, Parent/Subtask > Parent (issue in transition must be subtask).

    2. Choose the transition that you want

    the epic to perform when the issues
    1. to apply to the issue when all the subtasks are done. Here, we want the

    epic
    1. parent issue to

    turn
    1. move to Done

    too
    1. .

    Make sure you choose the Done transition with the corresponding number – here it’s 31.
    1. You don’t need to add a resolution

    to the done transition. In case you want one, you have to
    1. . If you do include a resolution, make sure that the resolution field is visible on the transition screen.

    2. Since we only want to close the

    Epic
    1. parent issue when the last task is closed, we need to configure the status of

    the
    1. all sibling issues. In this case, we choose the Done status

    “Done”
    1. 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
    1. once the last subtask is done.

  6. Select Add at the bottom of the page.

  7. Publish your workflow.

  8. Now go to your Epic issue and move all the tasks to “Done”. Your epic status is now “Done” too! You can subtasks to

    Status
    colourGreen
    titledone
    . Watch as the parent issue moves to
    Status
    colourGreen
    titledone
    . You may need to refresh your browser to see the change. You can similarly configure the same automation process for any parent and sub-tasks you needan epic and all its subtasks.

How-to video

Watch this video to see this use case in action:

...