# Customer request type sync

**URL:** https://community.exalate.com/t/customer-request-type-sync/4145
**Category:** General Questions
**Tags:** onpremise-jira, migrated\_question
**Created:** [November 4, 2024, 6:34am UTC](https://community.exalate.com/t/customer-request-type-sync/4145 "2024-11-04T06:34:05Z")
**Posts on this page:** 2
**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/customer-request-type-sync/4145/1 "2024-11-04T06:34:05Z")

</div>

_Originally asked by Mario Fanck on 15 January 2020 [(original question)](https://oldcommunity.exalate.com/questions/8552974)_

* * *

Good morning,  
I need to set the “customer request type” automatically depends from the outcoming sync.

Example:  
outgoing sync:  
replica.customFields.“Customer Request Type” = issue.customFields.“Customer Request Type”

incoming sync:  
issue.customFields.“Customer Request Type”.value = “IT Help”  
issue.customFields.“Customer Request Type”.value = “IT Help 2”  
issue.customFields.“Customer Request Type”.value = “IT Help 3”

use case:  
when in project A issue is “Customer Request Type” = “IT Help” set in project B “Customer Request Type” = “IT Help”

when in project A issue is “Customer Request Type” = “IT Help 2” set in project B “Customer Request Type” = “IT Help 2”

when in project A issue is “Customer Request Type” = “IT Help 3” set in project B “Customer Request Type” = “IT Help 3”

Best regards  
MarioQuelle: [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:34am UTC](https://community.exalate.com/t/customer-request-type-sync/4145/2 "2024-11-04T06:34:06Z")

</div>

_Answer by Francis Martens (Exalate) on 15 January 2020_

Hi Mario Fanck

Can you check if [How to synchronize ‘Customer request type’ Service Desk field](https://docs.idalko.com/exalate/x/hIYrAQ) covers what you are looking for?

* * *

#### Comments:

> **Mario Fanck commented on 15 January 2020**
>
> > Hi Francis,
> 
> sure but this works only manually. Details EASE-3750
> 
> We need this automatically in the remote issue.
> 
> for customer request types:
> 
> local “help1” → remote “help1”
> 
> local “help2” → remote “help2”
> 
> local “help3” → remote “help3”
> 
> local “help4” → remote “help4”

> **Francis Martens (Exalate) commented on 16 January 2020**
>
> > What do you mean with ‘manually’?
> 
> I guess I’m missing the point.

> **Mario Fanck commented on 16 January 2020**
>
> > Outgoing sync:
> 
> replica.customFields.“Customer Request Type” = issue.customFields.“Customer Request Type”
> 
> Incoming sync:
> 
> issue.customFields.“Customer Request Type”.value = “IT Help”
> 
> IT Help is a string but i need this dynamically depending from the input project A.
> 
> When i choose a customer request type “IT Help” in project A then sync customer request type “IT Help” to project B.
> 
> When i choose a customer request type “IT Help 1” in project A then sync customer request type “IT Help 1” to project B.
> 
> When i choose a customer request type “IT Help 2” in project A then sync customer request type “IT Help 2” to project B.

> **André Leroy-Beaulieu Castro commented on 17 January 2020**
>
> > Incoming sync:
> 
> issue.customFields.“Customer Request Type”.value = “IT Help”
> 
> Instead of setting a static string you want to grab the value from the replica’s value so it should be:
> 
> ```auto
> issue.customFields."Customer Request Type".value = replica.customFields."Customer Request Type"?.value
> 
> ```
> 
> Thanks,
> 
> André

> **Shiva commented on 22 June 2021**
>
> > Hi Mario Fanck ,
> 
> Were you able to achieve this? I am having same issue. I can sync the static value but it is not grabbing the value from the original ticket.
> 
> Andre - I have tried your suggestion but its not working.
> 
> Thanks,
> 
> Shiva

> **Francis Martens (Exalate) commented on 26 June 2021**
>
> > Shiva,
> 
> Check the value that you are assigning (using debug.error or log.info)
> 
> Make sure that what you assign can be set.  
> If it doesn’t work for a certain value - try it with a hard coded string.
