...
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.
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. Click the arrow that points to this status to show the transition rule Options menu.Status colour Green title DONE Select Post Functions to display the Post Functions tab.
Select Add post function to view all available post functions.
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.
We only want the parent to be transitioned to
if all of its subtasks areStatus colour Green title DONE
, so we begin by adding a condition. Under All Components, select the Related Issue Status condition.Status colour Green title DONE Select All Siblings from the Relation to issue dropdown, then select the
status. The condition displays in the rule overview. Next, we define the action that will occur if this condition is true.Status colour Green title done Select Add Component in the overview.
Under All Components, select the Trigger a Linked Transition post function.
To configure the action:
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
, so we select Parent of the task.Status colour Green title done Select the destination status for the issue. Here, we select
from the Status dropdown.Status colour Green title done
Enter a name for the rule. Choose a name that helps you identify the rule, for example,
Move parent to Done
.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.
Select Publish Draft at the top of the page. You can choose to save a backup if required before confirming.
...