Issues with Custom field sync from private instance to cloud

Originally asked by Vimalraj Rangasamy on 22 July 2020 (original question)


Hi,

I’m trying to sync from my private jira instance to cloud instance.

I have added below snippet in Outgoing sync
replica.customFields.“Cloud Program” = issue.customFields.“Program”

And in cloud I have added

replica.customFields.“Program” = issue.customFields.“Cloud Program”

Program field in my local instance is a drop down field and “Cloud Program” field in cloud instance is a text field. I don’t get any error. But, “Cloud Program” field is not set. Please assist


Answer by Roman on 22 July 2020

Hi Vimalraj Rangasamy,

In the Outgoing sync you have to put the value into a replica. So in order to put the data from the Program field into replica and send it over to the other side we would have the code below

{code}

replica.customFields.“Program” = issue.customFields.“Program”

{code}

In the Incoming sync you need to tell there the value that comes from the other side needs to go. So in case we want to put the value from other side (replica) Program field into the issue side Cloud Program field we would have

{code}

issue.customFields.“Cloud Program”.value = replica.customFields.“Program”.value

{code}


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