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
Cloud

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

you can find the documentation here

see our JSU Server/Data Center documentation.

Info

NOTE: This guide starts from the "Edit Workflow" screen of a chosen project. If you're not sure how to get to this page, follow the onboarding steps

first on either: /wiki/spaces/JSUCLOUD/pages/27801900 or /wiki/spaces/JSUCLOUD/pages/1147633753

for existing projects in Edit a Jira Workflow.

(tick) Keep your backlog clean by ensuring that parent issues are automatically closed when all of

its

their sub-tasks are completed

↓ Follow

the visual

the step-by-step guide below to see how to configure this automation in your Jira instance. ↓

Configure the post function

  1. If you haven't already, switch the workflow viewer into "Diagram View" and ensure you are in "Edit Mode"


    Image Removed
    As we

    . You can enter Edit Mode by selecting the "Edit" option towards the right of your workflow viewer. 

    Image Added

  2. We want to close parent issues when

    its

    their' sub-tasks are done, so we need to add the rule specifically to when issues transition to the 

    Status
    colourGreen
    titleDONE
     status. Click on the arrow that points inwards to this status to show the transition rule menu.

    As we
  3. We want to add a

    Post-Function

    post function to this transition, which runs an automation after the issue has been transitioned to the target status. Select "Post Functions" from the list which opens a new tab.

    Image RemovedImage Added

  4. In the Post Functions table - click "Add post function" to view all available post

    -

    functions.

    Image RemovedImage Added

  5. Choose "Linked Transition (JSU)" and then click "Add" at the bottom of the screen.

    Image RemovedImage Added

  6. As we

    We want the parent to

    be

    automatically

    closed

    close when the last sub-task is

    Closed -

    closed, so let's set "Trigger transition on all issues related as" to "Parent / Sub-Task > 

    Parent

    Parent (Issue in Transition must be Sub-Task)".

    Image RemovedImage Added

  7. Now, we have to tell JSU which transition and in which workflow

    do we

     we want to transition the

    Parent

    parent issue we just selected. As we want to keep this rule simple, we only want this rule to apply to issues in our "JSU" project. So for "Transition", we select the workflow that applies to our JSU project and the "Done" transition. This means any parent issues will be transitioned to 

    Status
    colourGreen
    titleDONE
     as part of the rule we're configuring.

    Image RemovedImage Added

  8. But remember, we only want the parent to be transitioned to 

    Status
    colourGreen
    titleDONE
     if ALL of

    it's

    its sub-tasks are also 

    Status
    colourGreen
    titleDONE
    . To configure this, for "All other sibling issues (for example linking to the target with the same link type) must have one of the following statuses" we're going to set this as "Done".

    Image RemovedImage Added

  9. The remaining fields are optional. For your reference though we can talk about how you might want to use the remaining fields. If you're happy as is, feel free to proceed to Step #9.

    1. Resolution - If you would like to add a

      Resolution

      resolution to the parent issue after the post

      -

      function closes it, you can define which

      Resolution

      resolution to choose in this field.

    2. Perform as user - In Jira Cloud, all "actions" both manual and automated, must be performed by a registered Atlassian account. If you'd like JSU to impersonate another user to run its automation, you can choose that user here. It's important to note that the impersonated user must have the right account privileges to perform the action. If you're not sure, just leave this field blank. Leaving the field blank means the automation will be

      ran

      run as the "JSU add-on user" which has elevated privileges and can perform most functions.

    3. Copy field - If you'd like to add more information to the parent issue as part of the automation, you can describe what information you'd like to add here.

  10. Now you're ready to save your new

    Post-Function

    post function. To do this, click "Add" at the bottom of the page.

    Image RemovedImage Added

  11. You can now see a

    preview summary

     summary of all your

    Post-Functions

    post functions applied to this transition. To confirm this new workflow and test it out, you need to publish it. At the top of the screen click "Publish Draft" and then either "Yes" or "No" if you'd like to save a backup of the workflow before our changes are applied, followed by "Publish" again. 

    Image RemovedImage Added

Test the post function in the workflow

Now we can go test the post

-

function in action!

  1. Head to an open issue that has one or more open sub-tasks within it.

    Image RemovedImage Added


  2. Now proceed to transition all of the subtasks to 

    Status
    colourGreen
    titledone
    .

    Image RemovedImage Added


  3. Now refresh/reload the parent issue. You'll notice that it has now also been transitioned to 

    Status
    colourGreen
    titledone
     - which means our

    Post-Function

    post function has worked as expected!

    Image RemovedImage Added

  4. Congratulations! You've just configured your very own automation! (star)

Feel free to continue exploring other use

-

cases for this Post-Function, such as "Close parent Epic when all the issues within the Epic are done" and more!


Need more

Information

information or help? Get in touch!