A workflow validator which ensures that the current issue's linked issues (existing and ones added during the transition) are in one of the selected statuses. To add 'Linked Issue(s) Status Validator' to a transition:
Click Edit for the workflow that has the transition you wish to configure the validator on.
In the Workflow Designer, select the transition.
Click on
Validators
in the properties panel.Click on
Add
validator
.Select
Linked Issue(s) Status Validator
from the list of validators.Click on
Add
to add the validator on the transition.Select the issue link type from the
Issue Link
drop-down.Select the issue type from the
Issue Type
field.Select the status(es) of the linked issues from the
Statuses
field.Click on
Add
to add the validator to the transition.
On the Service Management portal view of a request, the customer will not see the Error message
when the validator fails. This is due to a known limitation (JSDCLOUD-5853) with Atlassian.
When you add this validator to a transition and trigger the transition, the add-on checks the Status of each linked issue (existing and ones added during the transition). If any linked issue is not in one of the selected statuses then an error message is displayed.
The list of statuses that is displayed under the Statuses
field has all the statuses across different workflows. This is because the workflow of an issue and that of its linked issues can be different.
Error message
Customize the error message that needs to be displayed if at least one of the linked issues is not in the specified status(es).
Validator scope
Control the execution of the validator using this option. Check this option if you want the validation to be performed only in certain cases, such as if the issue is of certain issue type or only if the issue is unassigned, or more generally satisfies an arbitrary Jira expression.
Use case
A typical use of this workflow validator is to validate that the issues linked to the current issue are in a specific status. Consider a use case where you want to block the user from closing the Epic until all the issues under it are closed. To configure this:
Add the “Linked Issues Status validator” to the “Close” transition
Select the “Issue Link Type” as “is Epic of”
Select the status “Closed” from “Statuses”
Save the validator
Publish the workflow