# Set default user picker (multi)

**URL:** <https://community.exalate.com/t/set-default-user-picker-multi/4337>\
**Category:** General Questions\
**Tags:** onpremise-jira, feature-customfield, migrated\_question\
**Created:** [November 4, 2024, 6:49am UTC](https://community.exalate.com/t/set-default-user-picker-multi/4337 "2024-11-04T06:49:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 6:49am UTC](https://community.exalate.com/t/set-default-user-picker-multi/4337/1 "2024-11-04T06:49:07Z")

</div>

_Originally asked by Samuel Bartolome on 03 September 2020 [(original question)](https://oldcommunity.exalate.com/questions/11342079)_

* * *

Hi there,  
I would like to set a default value (2 or more) for a user picker (multi).  
Any help will be appreciated.  
ThanksSource: [Jira Server/Datacenter](https://oldcommunity.exalate.com/pages/viewpage.action?pageId=3703137)_(old community)_

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 6:49am UTC](https://community.exalate.com/t/set-default-user-picker-multi/4337/2 "2024-11-04T06:49:14Z")

</div>

_Answer by Samuel Bartolome on 07 September 2020_

At the end I’ve figured it out

issue.customFields._“CustomField”_.value = [nodeHelper.getUserByUsername(_“Username1”_), nodeHelper.getUserByUsername(_“Username2”_)]

Thanks for the help

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 6:49am UTC](https://community.exalate.com/t/set-default-user-picker-multi/4337/3 "2024-11-04T06:49:15Z")

</div>

_Answer by Francis Martens (Exalate) on 04 September 2020_

Hi Samuel Bartolome

Check following document [How to synchronize list custom fields](https://docs.idalko.com/exalate/x/WAFzAg)

Let me know

* * *

#### Comments:

> **Samuel Bartolome commented on 04 September 2020**
>
> > Hi,  
> > I believe the option I’m looking for is below, however I don’t seem to understand the last part of the code from the + sign
> 
> `nodeHelper.getOption(issue,``"Multi Select Custom Field name"``,``"MY STATIC OPTION"``)`
> 
> _Set an option value manually into the local custom field_
> 
> | 123 | `issue.customFields.``"Multi Select Custom Field name"``.value =``(issue.customFields.``"Multi Select Custom Field name"``.value ?: []) +``nodeHelper.getOption(issue,``"Multi Select Custom Field name"``,``"MY STATIC OPTION"``)` |
> | --- | --- |

> **Francis Martens (Exalate) commented on 04 September 2020**
>
> > what is the error you encounter?

> **Samuel Bartolome commented on 07 September 2020**
>
> > There is no error, however no data is populated into the field.
> 
> How shall we proceed if we would like to add 2 default values?
> 
> Thanks

> **Francis Martens (Exalate) commented on 07 September 2020**
>
> > You can always inspect the values and the flow of the script by adding
> 
> ```auto
> throw new Exception("Result - ${nodeHelper.getOption(issue, "Multi Select Custom Field name", "MY STATIC OPTION")}")
> 
> ```
> 
> This will provide you a way to look at the calculated value.

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 6, 2024, 6:49am UTC](https://community.exalate.com/t/set-default-user-picker-multi/4337/4 "2024-11-06T06:49:28Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
