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

Make a field required to enable a transition only for issues with the story issue type.

This use case can be modified to make a field required depending on the outcome of any other field.



Configuration

UI Steps


UI Step

Jira expression*

Code Block
languagebash
linenumberstrue
issue?.issueType?.name == "Story" ? issue?.customfield_20002 != null : true 

Issues with story Story issue type must have a value in the custom field with ID 20002.

UI Text Box
typenote

Make sure that the field code for the custom field with ID 20002 is written correctly. It might vary depending on the type of field.

You can always look for the field codes of the fields in our expression editor to simplify the process.




UI Steps

Variations

UI Step


Code Block
languagebash
linenumberstrue
issue?.customfield_10001?.value == "Yes" ? issue?.customfield_10002 != null : true 

Issues with the value Yes in the custom field with ID 10001 must have a value in the custom field with ID 20002.


UI Step


Code Block
languagebash
linenumberstrue
issue?.issueType?.name == "Story" && issue?.customfield_10001?.value == "Yes" ? issue?.customfield_10531?.value != null : true

Issues with story Issues with Story issue type and with the value Yes in the custom field with ID 10001 must have a value in the custom field with ID 20002.




Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case" and ancestor = "51773682" 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

Make a field required to enable a transition only for issues with the story issue type.

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
colourGreen
titleBeginner




Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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