Versions Compared

Key

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

...

  1. Create a draft of your project workflow. If you're unsure how to get to this page, follow the onboarding steps in Edit a Jira Workflow. You can then view your workflow in Text or Diagram mode. The steps in this use case represent Diagram mode. If you haven't already, switch the workflow viewer to Diagram mode.

    Jira Workflow editor in Diagram mode

  2. We want to close parent issues when their subtasks are done, so we need to add the rule for when issues transition to the 

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

  3. Select Post Functions to display the Post Functions tab.

    Jira Workflow editor in Diagram mode showing post functions highlighted in the transition options menu.

  4. Select Add post function to view all available post functions.

  5. Select the Access the Universal Rule Builder from JSU post function, then click Add at the bottom of the page. The Universal Rule Builder displays.

    List of available post functions shown with the Universal Rule Builder selected.

  6. We only want the parent to be transitioned to 

    Status
    colourGreen
    titleDONE
     if all of its subtasks are 
    Status
    colourGreen
    titleDONE
    , so we begin by adding a condition. Under All Components, select the Related Issue Status condition.

    List of available components in the Universal Rule Builder.

  7. Select All Siblings from the Relation to issue dropdown, then select the

    Status
    colourGreen
    titledone
    status. The condition displays in the rule overview. Next, we define the action that will occur if this condition is true.

    The Universal Rule Builder with a configured Related Issue Status condition.

  8. Select Add Component in the overview.

  9. Under All Components, select the Trigger a Linked Transition post function.

  10. To configure the action:

    1. Select the type of issue you want to move to a new status when the rule is triggered. We want to move the parent issue to

      Status
      colourGreen
      titledone
      , so we select Parent of the task.

    2. Select the destination status for the issue. Here, we select

      Status
      colourGreen
      titledone
      from the Status dropdown.

      Universal Rule Builder with a configured post function and condition.
  11. Enter a name for the rule. Choose a name that helps you identify the rule, for example, Move parent to Done.

    Complete rule displayed in the Universal Rule Builder overview.
  12. Select Add at the bottom of the page. A summary of all your post functions applied to this transition is displayed in the draft workflow.

    Summary of draft Jira workflow ready to publish.
  13. Select Publish Draft at the top of the page. You can choose to save a backup if required before confirming.

...