On this page

Use case

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

Configuration

Jira expression*

!issue.isEpic || 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.

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

Jira expression*

!issue.isEpic || 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.isEpic || 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.


Related use cases


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