Prevent transitions depending on the status of linked issues

Stefan Roels November 13, 2013

Is there a posibility to prevent transitions of JIRA issues depending on the status of linked issues?

In JIRA there is the posibility to indicate issue links and indicate them as being blocked, FS-dependent, and so on, but as far as I have been able to find, it is up to the user to take that into account.

It would be beneficial if JIRA would assist the users in this aspect, both when starting work on an issue (e.g. not allowing the start when there are blocking issues that are not marked as resolved) as well as when using JIRA Agile (automatically include blocking issues in a sprint when adding a blocked issue, or preventing to add a blocked issue when not all blocking issues are included)

3 answers

1 accepted

0 votes
Answer accepted
Henning Tietgens
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2013

You have to use a plugin for this. A very flexible way provides the Script Runner plugin and a script matching your requirements, but this involves some development. There are a lot of examples in the wiki of Script Runner.

1 vote
Andrey Markelov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2013

Hi,

In https://bitbucket.org/amarkelov/andreymarkelov-atlas-plugins-utils/wiki/Home there is Links Validator. This validator checks that there are no linked issues in setted statuses. Add-On https://marketplace.atlassian.com/plugins/ru.andreymarkelov.atlas.plugins.utils

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2013

Conditioned Workflow Functions for JIRA provides a Conditioned validator that can run a JQL query to determine whether or not to allow the transition to proceed. You could use a query similar to the following. Note that JQL currently doesn't allow you to search by specific link type (see JRA-25640):

issuekey in linkedIssues(%original_key%) and status is not resolved

Suggest an answer

Log in or Sign up to answer