Null value when syncing single line text field

Hello,

I have one custom field of type single line text on each side, our local Jira data center and the remote Jira cloud. Synchronization only needs to take place unidirectional (remote β†’ local), so I set up the configuration as follows:

Incoming Script (local):
issue.customFields.β€˜10300’.value = replica.customFields.β€˜10087’?.value?.value

Outgoing Script (remote):
issue.customFields.β€˜10087’= replica.customFields.β€˜10300’

But the problem I’m now encountering is that my local text field never receives a value. If I try to output the remote field value to the log file, it is always returning a null value

log.info("?Value: " + replica.customFields.'10087'?.value?.value)

[2024-12-12 11:17:41,450] <script> ?Value: null

What makes the whole thing even more confusing is that in the β€œRemote Issues” tab in one of the corresponding Jira tickets, the field contains a value in the payload, i.e.:
Field Name (10087): Test1234

As I can’t seem to figure out where the problem lies, please let me know your valuable suggestions.
Thank you

2 Likes

Dear @its-ops-lx

To debug this, can you please share either the local replica from the source side, or the remote replica from the destination side, for this particular customfield?

Thank you.

Kind regards,
Mathieu Lepoutre