# How to sync custom Date fields between 2 different jira servers

**URL:** <https://community.exalate.com/t/how-to-sync-custom-date-fields-between-2-different-jira-servers/4245>\
**Category:** General Questions\
**Tags:** onpremise-jira, migrated\_question\
**Created:** [November 4, 2024, 6:41am UTC](https://community.exalate.com/t/how-to-sync-custom-date-fields-between-2-different-jira-servers/4245 "2024-11-04T06:41:31Z")\
**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:41am UTC](https://community.exalate.com/t/how-to-sync-custom-date-fields-between-2-different-jira-servers/4245/1 "2024-11-04T06:41:31Z")

</div>

_Originally asked by Adam Chin on 09 June 2020 [(original question)](https://oldcommunity.exalate.com/questions/11339792)_

* * *

I’ve been referring to this documentation to update a custom Date Field between my 2 jira servers.

However I can’t seem to sync the date as whenever I try to exalate the issue, it doesn’t get updated on the opposing side.

I’m currently using this for incoming sync for both sides:  
replica.customFields.“Contract Start Date” = issue.customFields.“Contract Start Date”

and outgoing sync for both sides:  
issue.customFields.“Contract Start Date”.value = replica.customFields.“Contract Start Date”.value

Would I still need to change the date processor as its between 2 jira servers. I’ve linked the documentation below.  
[https://docs.idalko.com/exalate/pages/viewpage.action?pageId\=36766017](https://docs.idalko.com/exalate/pages/viewpage.action?pageId%5C=36766017)  
Source: [Jira Server/Datacenter](https://oldcommunity.exalate.com/pages/viewpage.action?pageId=3703137)_(old community)_

* * *

#### Comments:

> **Juan Grases commented on 09 June 2020**
>
> > Looks that there was a bug in the documentation, mixing the outgoing and incoming. Actually what you have in the incoming should go in the outgoing (and the other way around). Let me know.

> **Adam Chin commented on 16 June 2020**
>
> > Juan Grases  
> > Thanks for the help, However I still seem to be getting an error.
> 
> ![](https://dub1.discourse-cdn.com/flex018/download/attachments/11339792/image2020-6-16_14-6-11.png?version=1&modificationDate=1592287571674&api=v2)

---

<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/how-to-sync-custom-date-fields-between-2-different-jira-servers/4245/2 "2024-11-04T06:41:32Z")

</div>

_Answer by Roman on 22 June 2020_

heyAdam Chin . You have a null pointer exception on row 29 in your script. We had a similar discussion here: [Cannot get property ‘value’ on null object](https://oldcommunity.exalate.com/questions/11338428/cannot-get-property-value-on-null-object)_(old community)_ . Can you if there is a value in that custom field and f the names or id’s of these fields are entered correctly

* * *
