Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Multi user picker validator

Giuseppe I
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2023

Dear all,

I have a multi user picker field and a group named respectively "Field" and "Group".

I would like to check wether there is at least a user into "Field" who doesn't belong to "Group".

On the server version I wrote the following Groovy Script as validator in a transition and it works fine:

issue.get("Field")?.any{!ComponentAccessor.groupManager.isUserInGroup(it.name, 'Groups')}

Any suggestions on how to write it for the Cloud?

Thanks

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events