On this page
Use case
Evaluate issue links and hide transitions based on the outcome.
This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator.
Configuration
Jira expression*
issue.links.filter(link => link.type.name == "Blocks").length == 0
The current issue must not have a link of type "Blocks". This includes both link directions: "blocks" and "is blocked by".
Variations
You can easily modify this use case to include / exclude additional parameters.
Jira expression*
issue.links.filter(link => link.type.name == "Blocks") .every(link => link.direction != "outward")
The current issue must not block any other issue.
Jira expression*
issue.links.filter(link => link.type.name == "Blocks" && link.direction == "inward") .every(link => link.linkedIssue.resolution != null)
The current issue must not be linked to any unresolved blocking issue.
Jira expression*
issue.links.every(link => link.linkedIssue.status.name == "Done")
All linked issues must be in the status DONE
Jira expression*
issue.links.every(link => link.linkedIssue.issueType.name == "Bug" && link.linkedIssue.resolution != null)
All linked bugs must be resolved.
Related use cases
ADVANCED BEGINNER BEGINNER BEGINNER INTERMEDIATE BEGINNER INTERMEDIATE BEGINNER INTERMEDIATE INTERMEDIATE INTERMEDIATE BEGINNER BEGINNERUse case JWT feature Workflow function Parser functions Complexity Block a transition based on issue links Block a transition based on sprint information Block a transition based on the day of the week Block a transition if a predefined field value has not been changed Block a transition if some issues under an epic are not in a certain status Check current issue status Check for unresolved sub-tasks Check if an attachment was added recently Check parent issue type Check the number of times that a field has changed Evaluate the Parent Link field Evaluate worklogs in sub-tasks Validate an issue only if a comment is written during the transition Validate worklogs
If you still have questions, feel free to refer to our support team.