The Except 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 DC field codes are not available in conditions or validators in JWT Cloud, they have to be replaced by their Jira expression equivalent. |
|
Enter the Jira expression
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.
The respective FIELD must hold an Atlassian user. In case - e.g. when using a text field - FIELD contains user name, |
Enter the Jira expression
!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.
The respective FIELD must hold Atlassian users. In case - e.g. when using a text field - FIELD contains only user names, |
Enter the Jira expression
!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.
Enter the Jira expression
!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:
!user.groups.some(ug=>issue?.customfield_10058?.map(g => g.name).includes(ug)) |