# Set Multi-Level Cascading Select in JIRA Based on Fields in Zendesk

**URL:** <https://community.exalate.com/t/set-multi-level-cascading-select-in-jira-based-on-fields-in-zendesk/4248>\
**Category:** General Questions\
**Tags:** exalate, feature-customfield, cloud-zendesk, migrated\_question, onpremise-jira-serve\
**Created:** [November 4, 2024, 6:41am UTC](https://community.exalate.com/t/set-multi-level-cascading-select-in-jira-based-on-fields-in-zendesk/4248 "2024-11-04T06:41:38Z")\
**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:41am UTC](https://community.exalate.com/t/set-multi-level-cascading-select-in-jira-based-on-fields-in-zendesk/4248/1 "2024-11-04T06:41:38Z")

</div>

_Originally asked by Spencer Johnson on 09 June 2020 [(original question)](https://oldcommunity.exalate.com/questions/11339827)_

* * *

How do I set a Multi-level cascading select field on jira based on fields in zendesk (even if the zendesk field is broken out into multiple fields, ie one drop-down for each level)?

* * *

---

<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:41am UTC](https://community.exalate.com/t/set-multi-level-cascading-select-in-jira-based-on-fields-in-zendesk/4248/2 "2024-11-04T06:41:40Z")

</div>

_Answer by André Leroy-Beaulieu Castro on 12 June 2020_

Hi Spencer,

After doing some testing with this plug-in myself I see that the way to send the information in your data filter should be the following (jira):

```auto
replica.customKeys."Location" = issue.customFields."Location"?.value?.value

```

what you are sending is a list of strings so in Zendesk you’re going to need to map that into a text field, that

s what I think would be the easiest option.

Let me know how this goes!

Thanks,

André

* * *

#### Comments:

> **Spencer Johnson commented on 10 June 2020**
>
> > I am trying to figure out how jira sends the field from the local payload but there is an error and the local replica is empty currently

> **Spencer Johnson commented on 15 June 2020**
>
> > It didn’t give an error but it didn’t work:
> 
> Here is the outgoing on the Jira side:
> 
> ```auto
> replica.customKeys."Location" = issue.customFields."Location"?.value?.value
> 
> ```
> 
> Here is the incoming on the zendesk side:
> 
> if(replica.customFields.“Location”?.value){ // Works  
> issue.customFields.“Location”.value = replica.customFields.“Location”.value  
> }
> 
> On the zendesk side, Location in the remote replica comes in as
> 
> ```auto
> "customKeys": {
> "Location": [
> "Broadband",
> "AAFES",
> "AFMTHM Mountain Home AFB"
> ]
> },  
>   
> No location is shown on the local replica from the zendesk side
> 
> ```

> **André Leroy-Beaulieu Castro commented on 15 June 2020**
>
> > Hi Spencer,
> 
> The line on zendesk should be:
> 
> ```auto
> issue.customFields."Location"?.value = replica.customKeys."Location".join(",")
> 
> ```
> 
> Thanks,
> 
> André

> **Spencer Johnson commented on 16 June 2020**
>
> > That worked! Do you know how i would go from the other direction?
> 
> Ie setting the multilevel cascading select field in Jira from the zendesk side (even if its broken out in multiple fields in zendesk)?

---

<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:41am UTC](https://community.exalate.com/t/set-multi-level-cascading-select-in-jira-based-on-fields-in-zendesk/4248/3 "2024-11-04T06:41:40Z")

</div>

_Answer by Spencer Johnson on 17 June 2020_

How would I go about the other direction? ie zendesk to Jira

Here is the set up on the zendesk outgoing:

```auto
replica.customFields."Location Part 1" = issue.customFields."Location Part 1" 
replica.customFields."Location Part 2" = issue.customFields."Location Part 2" 
replica.customFields."Location Part 3" = issue.customFields."Location Part 3"

```

On the jira incoming, I want to combine those into one and set “Location”  
This is what I have currently but it isnt working

```auto
issue.customKeys."Location" = [replica.customFields."Location Part 1".value, replica.customFields."Location Part 2".value, replica.customFields."Location Part 3".value]

```

* * *

#### Comments:

> **Spencer Johnson commented on 07 July 2020**
>
> > André Leroy-Beaulieu Castro I wanted to follow up on this

> **Spencer Johnson commented on 17 July 2020**
>
> > I created this community question for the other direction:[Set Multi-Level Cascading Select in JIRA Based on Field in Zendesk](https://oldcommunity.exalate.com/questions/11340869/set-multi-level-cascading-select-in-jira-based-on-field-in-zendesk)_(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:41am UTC](https://community.exalate.com/t/set-multi-level-cascading-select-in-jira-based-on-fields-in-zendesk/4248/4 "2024-11-04T06:41:41Z")

</div>

_Answer by André Leroy-Beaulieu Castro on 10 June 2020_

Hi Spencer,

What error are you currently seeing? Is it in Jira or Zendesk? If you access the Entity Sync Status window in your Exalate app for Jira and look for the issue where you are trying this out, you can’t see the local replica?

Thanks,

André

* * *

#### Comments:

> **Spencer Johnson commented on 11 June 2020**
>
> > ![](https://dub1.discourse-cdn.com/flex018/download/attachments/11339827/Screen%20Shot%202020-06-09%20at%201.31.00%20PM.png?version=1&modificationDate=1591831640582&api=v2)
> 
> Here is the error. It is on the JIRA side.
> 
> There is no “Entity Sync Status” in the exalate app in Jira or at least none that I could find.
