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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

51 views 1 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you