Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

Issues with Custom field sync from private instance to cloud

 
2
1
0

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


    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      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}

        CommentAdd your comment...