Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Validation for User Picker (multiple user)

Mohamed Saad Taha 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

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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events