# How to sync customfields by ID (same Jira Instance)

**URL:** <https://community.exalate.com/t/how-to-sync-customfields-by-id-same-jira-instance/4206>\
**Category:** General Questions\
**Tags:** onpremise-jira, migrated\_question\
**Created:** [November 4, 2024, 6:38am UTC](https://community.exalate.com/t/how-to-sync-customfields-by-id-same-jira-instance/4206 "2024-11-04T06:38:48Z")\
**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:38am UTC](https://community.exalate.com/t/how-to-sync-customfields-by-id-same-jira-instance/4206/1 "2024-11-04T06:38:48Z")

</div>

_Originally asked by Lara LG on 20 April 2020 [(original question)](https://oldcommunity.exalate.com/questions/11339109)_

* * *

Hello,  
In my Jira instance I have a customfield called location. There are 5 custom field called location. Exalate throws an error when trying to sync because there are a lot of this custom field. The documentation says I should call it by ID but does not specify the proper way.  
If I am syncing two Jira Projects locally (same server) what would be the correct syntax?

Outgoing  
Option 1: replica.customFields.“17800”= issue.customFields.“17800”  
Ooption 2: replica.customFields.“customfield\_17800”= issue.customFields.“customfield\_17800”  
Ooption 3:replica.customFields.“Location”= issue.customFields.“17800”

Incoming  
issue.customFields.“17800”.value = replica.customFields.“17800”.value  
issue.customFields.“customfield\_17800”.value = replica.customFields.“customfield\_17800”.value  
issue.customFields.“17800”.value = replica.customFields.“Location”.value

Which one would be right?

ThanksSource: [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:38am UTC](https://community.exalate.com/t/how-to-sync-customfields-by-id-same-jira-instance/4206/2 "2024-11-04T06:38:49Z")

</div>

_Answer by Juan Grases on 20 April 2020_

It should be Option A:

Outgoing:

```auto
replica.customFields."17800"= issue.customFields."17800"

```

Incoming:

```auto
issue.customFields."17800".value = replica.customFields."17800"?.value

```

I will make sure the docs indicate this correctly.

Best regards,

Juan

* * *

---

<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:38am UTC](https://community.exalate.com/t/how-to-sync-customfields-by-id-same-jira-instance/4206/3 "2024-11-04T06:38:50Z")

</div>

_Answer by Lara LG on 21 April 2020_

Thanks Juan! I will try it!

* * *

---

<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:39am UTC](https://community.exalate.com/t/how-to-sync-customfields-by-id-same-jira-instance/4206/4 "2024-11-06T06:39:25Z")

</div>

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