Block `Close` Transition Until All Subtasks are Closed
On this page:
Table of Contents |
---|
The problem is simple, we
Table of Contents |
---|
Info | ||
---|---|---|
| ||
Power Scripts™ for Jira (server) 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
JJupin
Adding a new condition
Log in as an administrator and navigate to Administration-> Workflows and edit "Close Issue" transition on the default JIRA Jira workflow. Press `Add` Click Add a new condition:
Now add a '(k) SIL SIL™ condition':
The following screen appears:
Writing code
The following code (also shown above) does all the magic:
...
Press the 'Save' button to save it on the server side (you can also check its syntax before, use the 'Check' button in the editor's menu).
Info | ||
---|---|---|
| ||
All you have to do now is to publish your workflow. |
See
...
also
- Copy the reporter and watchers on duplicate issues
- Create an issue of a certain issue type when there is no Create permission
- Forbidding specific priorities for certain projects
- Restricting resolutions based on issue type
- Restrict sub-tasks based on Issue Type