Page History
UI Text Box | ||||
---|---|---|---|---|
| ||||
The Only users in a field of JWT DC is not yet available in JWT Cloud but can be implemented easily using a Jira expression condition. Since JWT field codes are not available in conditions or validators in JWT Cloud, they have to be replaced by their Jira expression equivalent. |
Migration steps
UI Steps | ||||
---|---|---|---|---|
|
Migration details
User is in a field which holds a single user
Enter the Jira expression
Code Block | ||
---|---|---|
| ||
FIELD.accountId == user.accountId |
by replacing FIELD by the Jira expression field code of the respective field. It can be selected using the field injector of the JWT expression editor.
UI Text Box | ||
---|---|---|
| ||
In case - e.g. when using a text field - FIELD contains user name, |
User is in a field which holds multiple users
Enter the Jira expression
Code Block | ||
---|---|---|
| ||
FIELD.includes(user.accountId) |
by replacing FIELD by the Jira expression field code of the respective field. It can be selected using the field injector of the JWT expression editor.
UI Text Box | ||
---|---|---|
| ||
Please note, that the respective field must hold an Atlassian user. In case - e.g. when using a text field - FIELD contains only user names, |
User is in a field which holds one group
Enter the Jira expression
Code Block | ||
---|---|---|
| ||
user.groups.includes(FIELD) |
by replacing FIELD by the Jira expression field code of the respective field. It can be selected using the field injector of the JWT expression editor.
User is in a field which holds multiple groups
Enter the Jira expression
Code Block | ||
---|---|---|
| ||
user.groups.some(ug=>FIELD.includes(ug)) |
by replacing FIELD by the Jira expression field code of the respective field. It can be selected using the field injector of the JWT expression editor.
Example:
Code Block | ||
---|---|---|
| ||
user.groups.some(ug=>issue?.customfield_10058?.map(g => g.name).includes(ug)) |
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|