Block `Close` Transition Until All Subtasks are Closed
On this page:
Table of Contents |
---|
Info | ||
---|---|---|
| ||
You will need the following JIRA plugins: Level: BASIC |
Problem
We want to block the task 'Close' transition if there are subtasks which are not closed. To accomplish that we need to add a new condition to the 'Close' transition.
Solution
Adding a new condition
Log in as an administrator and navigate to Administration-> Workflows and edit "Close Issue" transition on the default JIRA workflow. Press `Add` a new condition:
...
The following screen appears:
Writing code
The following code (also shown above) does all the magic:
...
Info | ||
---|---|---|
| ||
All you have to do now is to publish your workflow. |
See Also
Transition View to learn how to write and edit SIL scripts.