Custom field sync between JS and JSM

Originally asked by Marko Jesenek on 30 April 2021 (original question)


Hello,

We’re deciding about using your plugin for synchronizing Jira Software (server) and Jira Service Managment (Cloud).

We have incountoring a specific problem. Custom field doesn’t synchronize as expected. Could you please check our case and advise us how connection must be proporly maded?

We need to transfer custom field named ‘TempoBillSEC’ from JS Server side to JSM cloud side. This is a scriptrunner field which sums all billable hours in tempo for issue.

On Server side made ne field ‘TempoBillSEC’ which should syhnorize to Cloud side to field ‘ATempoBillSec’. But we always get error: Cannot set property ‘ATempoBillSec’ on null object …

Cloud side:

--

When we try differet approach and construct another custom field ‘ATempoBillSec’ in JS Server, than connect it as outgoing It kinda works (but not as expected)

sync:

And on Cloud Incoming sync:

But results at first synchronize different as expected.

Please help us. We think that ‘Exalate’ offers what we need but we need some help to test it.


Answer by Serhiy Onyshchenko on 14 May 2021

Hello, Marko Jesenek, what type is the ATempoBillSec on cloud side?
Also, judging by the error message “Cannot set property ‘ATempoBillSec’ on null object”, the incoming script would look a little bit differently.
Could you try this form as well on cloud:

issue."ATempoBillSec" = replica.customFields."TempoBillSEC"?.value

or even

issue."ATempoBillSec" = replica."TempoBillSEC"

Regards, Serhiy.