This is the documentation for JSU for Jira Cloud. If you are using JSU on Jira Server/Data Center, see our JSU Server/Data Center documentation. The Universal Rule Builder is available only in JSU Cloud. |
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 . Let’s look at how this common task can be automated with JSU’s Universal Rule Builder. |
Components | Universal Rule Builder: Related Issue Status and Create a Linked Transition |
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.
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 are , so we begin by adding a condition. Under All Components, select the Related Issue Status condition.
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.
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.
Select the destination status for the issue. Here, we select from the Status dropdown.
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.
We recommend that you build and test your rules in a test project. |
Go to an open issue that includes one or more open subtasks. If you do not have a test project with the necessary issues, create a task and add a few subtasks.
Transition all of the subtasks to .
Refresh the browser to reload the parent issue. You'll notice that it has now also been transitioned to - which means our post function has worked as expected.
Congratulations! You've just configured your very own automation with the Universal Rule Builder!