Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

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


Configuration

UI Steps


UI Step

Jira expression*

Code Block
languagebash
linenumberstrue
!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.



UI Expand
titleVariations

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

UI Steps


UI Step

Jira expression*

Code Block
languagebash
linenumberstrue
!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.





UI Step

Jira expression*

Code Block
languagebash
linenumberstrue
!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

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Use case description, Complexity
sortByTitle
cqllabel = "use-case" and label = "jira_expression" and space = currentSpace()


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Jira expression condition

Jira expression validator

Use case description

Check whether an epic has all issues under it in a certain status.

This is particularly important if you want to block an epic as long as work is still being done on related sub-tasks.

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.

Complexity

Status
titleintermediate




Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged