# Sync Select List (cascading) custom field

**URL:** <https://community.exalate.com/t/sync-select-list-cascading-custom-field/4150>\
**Category:** General Questions\
**Tags:** onpremise-jira, exalate, cloud-jira, feature-customfield, migrated\_question\
**Created:** [November 4, 2024, 6:34am UTC](https://community.exalate.com/t/sync-select-list-cascading-custom-field/4150 "2024-11-04T06:34:31Z")\
**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:34am UTC](https://community.exalate.com/t/sync-select-list-cascading-custom-field/4150/1 "2024-11-04T06:34:31Z")

</div>

_Originally asked by Andrey Miranda on 27 January 2020 [(original question)](https://oldcommunity.exalate.com/questions/11337786)_

* * *

I have a project on Jira cloud and another project on Jira server.

I need to sync a custom field { Select List (cascading) } I try with some different scripts and I don’t have a good result.

If Do you have some suggestion I appreciate it?

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, 6:34am UTC](https://community.exalate.com/t/sync-select-list-cascading-custom-field/4150/2 "2024-11-04T06:34:33Z")

</div>

_Answer by Andrey Miranda on 30 January 2020_

Good afternoon,

I tried with your recommendation but I don’t have good results.

Also, I was checking this solution ([https://docs.idalko.com/exalate/display/ED/Sync+between+Cascading+Select+and+Text+custom+fields](https://docs.idalko.com/exalate/display/ED/Sync+between+Cascading+Select+and+Text+custom+fields)) and i had the next result Phone extension is the custom field in the project that i need to sync

 ![](https://europe1.discourse-cdn.com/flex018/uploads/exalate1/original/1X/4f9bab40e63e521a26790796aa14d4aa2949fa6e.png)

if you have any suggestion I appreciate it

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, 6:34am UTC](https://community.exalate.com/t/sync-select-list-cascading-custom-field/4150/3 "2024-11-04T06:34:34Z")

</div>

_Answer by Andrey Miranda on 27 January 2020_

Thanks, I going to check the information

* * *

---

<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:34am UTC](https://community.exalate.com/t/sync-select-list-cascading-custom-field/4150/4 "2024-11-04T06:34:40Z")

</div>

_Answer by André Leroy-Beaulieu Castro on 27 January 2020_

Hi Andrey,

Take a look at the following documentation:

[https://docs.idalko.com/exalate/display/ED/Syncing+cascading+select+custom+fields](https://docs.idalko.com/exalate/display/ED/Syncing+cascading+select+custom+fields)

[https://docs.idalko.com/exalate/display/ED/getCascadingSelect](https://docs.idalko.com/exalate/display/ED/getCascadingSelect)

```auto
def parent = nodeHelper.getOption(issue, "Destination Region/Country", "Europe")
issue.customFields."Destination Region/Country".value = nodeHelper.getCascadingSelect(
       parent,
       parent.childOptions.find{it.value == "Belgium"}
)

```

```auto
issue.customFields."Destination Region/Country".value = nodeHelper.getCascadingSelect(
       nodeHelper.getOption(issue, "Destination Region/Country", "Europe"),
       nodeHelper.getOption(issue, "Destination Region/Country", "Belgium")
 )

```

These approaches should both work correctly.

Let me know how it goes!

Thanks,

André

* * *

#### Comments:

> **Andrey Miranda commented on 03 February 2020**
>
> > I was checking the first link again, and I found what is the problem, this solution is perfect
> 
> thanks for your suggestions
