The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events