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

How can I load a multi select custom user field with multiple values

richard.n.pykkonen September 4, 2020

I have a custom field called business approver and it is a user picker multi user.  I load the approvers based on the business function selected and it works great when there is one approver.  When I need to load three approvers in to the approvers field, I can't get it to work.

 

Is there a way through Behaviours to do this?  The below works for a single user.  If I try to a second user, it does not work.  It is just blank.  

if (dropDownValue == "Business Strategy and Development")
{
approvers.setFormValue("211111111")
}

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Jia Jie
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.
January 30, 2021

Hi Richard,

Are you trying to set the User Picker (Multiple users) with multiple values?

I've tried the script below and it works great (I've 3 usernames in my Jira: "carmen", "david" and "sim"):

if (dropDownValue == "Apple")
{
approvers.setFormValue("carmen, david, sim")
}

 Hope this helps!

TAGS
AUG Leaders

Atlassian Community Events