# Sync New Custom Field

**URL:** <https://community.exalate.com/t/sync-new-custom-field/4158>\
**Category:** General Questions\
**Tags:** cloud-jira, migrated\_question\
**Created:** [November 4, 2024, 6:35am UTC](https://community.exalate.com/t/sync-new-custom-field/4158 "2024-11-04T06:35:20Z")\
**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:35am UTC](https://community.exalate.com/t/sync-new-custom-field/4158/1 "2024-11-04T06:35:20Z")

</div>

_Originally asked by David Rodriguez on 12 February 2020 [(original question)](https://oldcommunity.exalate.com/questions/11338004)_

* * *

I would like to ask about the Custom Fields synchronisation, I am trying to sync a new field, but I am facing issues.

I added this sync rule: replica.customFields.“Partner Name” = issue.customFields."Partner Name”

Being "Partner Name” the field name. Also i tried with the ID of the field, but no results. (This is from JIRA Server to Cloud)

But it’s not working. Do you have any recommendation?

I’m following this guide:

[https://docs.idalko.com/exalate/display/ED/How\+to\+Synchronize\+Custom\+Fields](https://docs.idalko.com/exalate/display/ED/How%5C+to%5C+Synchronize%5C+Custom%5C+Fields)

Cheers.Source: [Jira Cloud](https://oldcommunity.exalate.com/pages/viewpage.action?pageId=3703235)_(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:35am UTC](https://community.exalate.com/t/sync-new-custom-field/4158/2 "2024-11-04T06:35:21Z")

</div>

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

Hi David,

The problem here is with that line you added you are only sending the custom field information, now you need to add logic in the Incoming Sync (destination side - Jira Cloud) to actually set that field into a custom field on that destination issue.

You have this:

Outgoing sync (source side - Jira Server):

```auto
replica.customFields."Partner Name" = issue.customFields."Partner Name”

```

You are missing this:

Incoming sync (destination side - Jira Cloud):

```auto
issue.customFields."Partner Name".value = replica.customFields."Partner Name"?.value

```

This is assuming that the field is also called “Partner Name” on the Cloud side and that the field if of type Text 😄

Thanks,

André

* * *

#### Comments:

> **David Rodriguez commented on 12 February 2020**
>
> > I tried this and update the ticket. But is not syncing the field. Probably some issue with the field name. So how can i test this but the field ID.
> 
> For example this is the ID of the field on the cloud: 10033 and this is the field’s ID on the server: 10403.
> 
> How can i apply it here:
> 
> ```auto
> issue.customFields."Partner Name".value = replica.customFields."Partner Name"?.value
> 
> ```

> **André Leroy-Beaulieu Castro commented on 12 February 2020**
>
> > Outgoing (Jira Server):
> 
> ```auto
> replica.customFields."Partner Name" = issue.customFields."10403"
> 
> ```
> 
> Incoming (Jira Cloud):
> 
> ```auto
> issue.customFields."10033".value = replica.customFields."Partner Name"?.value
> 
> ```
> 
> Let me know!
> 
> Thanks,
> 
> André

> **David Rodriguez commented on 12 February 2020**
>
> > Nice! It’s working! Thanks André! _(old community)_

> **André Leroy-Beaulieu Castro commented on 12 February 2020**
>
> > No problem!

---

<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:35am UTC](https://community.exalate.com/t/sync-new-custom-field/4158/3 "2024-11-04T06:35:22Z")

</div>

_Answer by David Rodriguez on 12 February 2020_

One question about this, There are some old fields we want to sync since they weren’t created after the first synchronisation. How can i sync this fields?

* * *

#### Comments:

> **André Leroy-Beaulieu Castro commented on 12 February 2020**
>
> > Hi David,
> 
> You can just add the logic to sync those fields to the sync rules of the connection and then if you update the tickets (change the summary, add a comment, for example), this will trigger a new sync and will sync those fields over.
> 
> Thanks,
> 
> André

---

<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:35am UTC](https://community.exalate.com/t/sync-new-custom-field/4158/4 "2024-11-06T06:35:23Z")

</div>

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