Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Adapted for the new Parent Field
Panel

On this page

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

UI Text Box
sizemedium
typeinfo

Use case

Evaluate different values of the issue in the Parent Link field of the transitioned issue.

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.

UI Text Box
typenote

This validation only works in transitions different from the Create transition.


Configuration

UI Steps
UI Step

Jira expression*

Code Block
linenumberstrue
issue?.customfield_nnnnn == "KEY-1" || issue?.customfield_yyyyy?.data?.key == "KEY-1"

Evaluate if the issue entered in the Parent Link field has the the key "KEY-1".

Note that it is necessary to replace "nnnnn" and "yyyyy" with the ID of the Parent Link field and the ID of the Epic Link field. 

Jira expression*

UI Text Box
typeinfo
UI Steps

Variations

UI Step
Code Block
linenumberstrue
let evalIssue = new Issue(issue?.customfield_nnnnn.data.key);

evalIssue.status.name == "Done" && evalIssue.customfield_mmmmm != null

Evaluate other custom fields from the issue in the Parent Link custom field. In this expression, the status of the issue is evaluated as well as a different custom field.

Note that it is necessary to replace "nnnnn" with the

Other properties of this field can be evaluated by replacing the "key" property with other properties such as "issueType.id" for the issue type ID or "projectId" for the project ID.

UI Step

ID

of the Parent Link field and "mmmmm" with the ID of the other custom field that needs to be evaluated

.


Image Modified  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

Parser functions
Use case description

Evaluate different values of the issue in the Parent Link field of the transitioned issue.

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