I'd like to write a Jira expression for use in a validator that checks if any of the following are true:
- The user performing the transition is in user group X
- The user performing the transition is in user group Y
- The user selected in user picker field customfield_10869 is in group X
- The user selected in user picker field customfield_10869 is in group Y
If any of these are true, the validator should allow the transition to happen. This is on the create transition in particular, so the issue should be created.
I've tried:
issue.customfield_10869.groups.includes('Account Managers') But get an error "Unrecognized property of `issue.customfield_10869.groups`: "includes""
I'm trying to create the validator using Scriptrunner.
Thanks!