You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

On this page

Use case

Block a transition if some of issues under an epic, differentiated by issue type, are not in the expected status.

Configuration

Jira expression*

issue.stories.filter(story => story.issueType.name == "Issue type of the issue").every(story=>story.status.name == "Selected status")

All of the issues with a certain issue type are in the selected status.

Variations

You can modify the expression to cater your requirements in many ways. Here you can find some more examples.

Jira expression*

issue.stories.filter(i => i.issueType.name == "Issue type of the issue" && i.status.name == "Selected status").length >= 1

At least one issue with a certain issue type in the selected status.


Jira expression*

issue.stories.filter(i => i.issueType.name == "Issue type of the issue" && ["Status 01", "Status 02"].includes(i.status.name)).length == 0

None of the issues with a certain issue type are in any of the selected statuses.



If you still have questions, feel free to refer to our support team.