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

Evaluate users and hide transitions based on the outcome.

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.


Configuration



UI Steps


UI Step

Jira expression*

Code Block
languagebash
linenumberstrue
["Charles Augustus", "John Watson"].includes(user.displayName)

Evaluate if the display name of the user is among a list of names.


UI Step

Variations

You can easily modify this use case to include / exclude additional parameters.

UI Steps


UI Step

Jira expression*

Code Block
languagebash
linenumberstrue
["62462d45f3824d006a58f82f", "6233ca6173c8ec00699e07c1"].includes(user.accountId)

Evaluate if the account ID of the current user is among a list of account IDs.


UI Step

Jira expression*

Code Block
languagebash
user.getProjectRoles(issue.project).map(p=>p.name).includes("Administrators")

Evaluate if the current user is an administrator.

UI Text Box
typetip

It can be modified to evaluate if the current users belongs to another project roles by changing the text between quotation marks.



UI Step

Jira expression*

Code Block
languagebash
linenumberstrue
user.groups.includes("site-admins")

Evaluate if the current user is in the group site-admins.








Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
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 users and hide transitions based on the outcome.

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
titleINTERMEDIATE




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