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

Compare with Current View Page History

Version 1 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")

This expression will check that 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.

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

This expression will check that there is at least one issue with a certain issue type in the selected status.

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

This expression will check that there is at least one issue with a certain issue type in the selected status.

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

This expression will check that 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.