# Set value Select Field Lists (single choise)

**URL:** <https://community.exalate.com/t/set-value-select-field-lists-single-choise/4391>\
**Category:** General Questions\
**Tags:** onpremise-jira, exalate, cloud-jira, feature-customfield, migrated\_question\
**Created:** [November 4, 2024, 6:53am UTC](https://community.exalate.com/t/set-value-select-field-lists-single-choise/4391 "2024-11-04T06:53:27Z")\
**Posts on this page:** 3\
**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:53am UTC](https://community.exalate.com/t/set-value-select-field-lists-single-choise/4391/1 "2024-11-04T06:53:27Z")

</div>

_Originally asked by Andrey Miranda on 16 October 2020 [(original question)](https://oldcommunity.exalate.com/questions/20120093)_

* * *

some one know how to set a value of a Select Field Lists (single choise) field .

for example i need to set a default value when sync a ticket y try the next example but i have the error that property value is not accept.

If you have some suggestions tell me

```auto
if (firstSync ) {
  issue.customFields."Issue Escalated From".value = "Exalate"
}

```

* * *

---

<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:53am UTC](https://community.exalate.com/t/set-value-select-field-lists-single-choise/4391/2 "2024-11-04T06:53:28Z")

</div>

_Answer by Andrey Miranda on 16 October 2020_

this is the solution :

```auto
 if (firstSync ){ issue.customFields."10012".value = "Exalate" }

```

* * *

#### Comments:

> **Juan Grases commented on 16 October 2020**
>
> > Good news you found a solution. Normally you should also be able to use the custom field name. Are you sure you use the exact name, case sensitive? Also the problem could be that you have many CFs with the same name, in that case using the ID is the way to go.

> **Andrey Miranda commented on 16 October 2020**
>
> > thanks i think is that i use the same custom field with different context and with the script search with the name is difficult to find

---

<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:53am UTC](https://community.exalate.com/t/set-value-select-field-lists-single-choise/4391/3 "2024-11-06T06:53:29Z")

</div>

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