Versions Compared

Key

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

Block `Close` Transition Until All Subtasks are Closed

Table of Contents


 You will need the following JIRA plugins:

JJUPIN
Info
titleRequired plugins
apps

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

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':
Image RemovedImage Added

The following screen appears:

Image RemovedImage Added

Writing code

The following code (also shown above) does all the magic:

...

Info
titleInfo

All you have to do now is to publish your workflow.
See more at Activating Workflow section on Atlassian Documentation

See also