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: 

Validation for User Picker (multiple user)

Mohamed Saad Taha
Contributor
February 26, 2024

Hello,

Iam using User Picker (multiple user) filed and I want to make validation that the user is selection two users not only one user ?

I have script runner and magic box plugin 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Vicente Domínguez _Decadis AG_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 26, 2024

Hello @Mohamed Saad Taha

I am part of the support team of Decadis and I would like to propose a solution using our app Jira Workflow Toolbox.

By using the Logical validator in combination with the numberOfSelectedItems() parser function it would be possible to block a transition if the number of selected users in a User Picker (multiple users) is different from two with the following expression.

numberOfSelectedItems(%{issue.cfnnnnn}) = 2

Please, replace “nnnnn” in the above expression with the ID of the custom field if needed when testing.

If you need more information about this or other implementations, please, do not hesitate to contact us in this thread or via our Support Service Desk or visit our documentation.

Best regards,

Vicente

TAGS
AUG Leaders

Atlassian Community Events