# List to text box (null value?

**URL:** <https://community.exalate.com/t/list-to-text-box-null-value/4914>\
**Category:** General Questions\
**Tags:** exalate, usecase, migrated\_question, moved\
**Created:** [November 4, 2024, 7:31am UTC](https://community.exalate.com/t/list-to-text-box-null-value/4914 "2024-11-04T07:31:40Z")\
**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, 7:31am UTC](https://community.exalate.com/t/list-to-text-box-null-value/4914/1 "2024-11-04T07:31:40Z")

</div>

_Originally asked by Filip Š. on 22 October 2021 [(original question)](https://oldcommunity.exalate.com/questions/37554405)_

* * *

Hello,

I have custom field “Topic” that is type of Single Choice on Jira Server side, and would like to sync it to custom field “Topic” that is type text on Jira Cloud side.

I have find this [https://support.idalko.com/servicedesk/customer/kb/view/2883643](https://support.idalko.com/servicedesk/customer/kb/view/2883643) but when I Apply it on receiving end, i get an Null error because sometimes that field can be null. Can you please provide me with a code snipet on the incoming side that would make this possible, I have tried several things but i always get an error.

Thanks

* * *

---

<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, 7:31am UTC](https://community.exalate.com/t/list-to-text-box-null-value/4914/2 "2024-11-04T07:31:41Z")

</div>

_Answer by Ariel Aguilar on 22 October 2021_

Hi Filip,

In order to prevent null values from generating an error, you might want to escape using “?”.

Example Incoming Script:

```auto
issue.customFields."TEXT".value = replica.customFields."Sports List"?.value?.value

```

Let me know if this works for you,

Kind regards,

Ariel

* * *

---

<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, 7:32am UTC](https://community.exalate.com/t/list-to-text-box-null-value/4914/3 "2024-11-06T07:32:29Z")

</div>

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