Evaluate the user

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

Jira expression*

Bash
["Charles Augustus", "John Watson"].includes(user.displayName)

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

Variations

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

Jira expression*

Bash
["62462d45f3824d006a58f82f", "6233ca6173c8ec00699e07c1"].includes(user.accountId)

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

Jira expression*

Bash
user.getProjectRoles(issue.project).map(p=>p.name).includes("Administrators")

Evaluate if the current user is an administrator.

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

Jira expression*

Bash
user.groups.includes("site-admins")

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


πŸ“š Related use cases