1
0
-1

I want to sync the Status field from one project to a custom field Engineering status in another project. I only want it to be a one-way sync from project B to project A. 


I have this code in my Incoming Sync, but it's not working:

issue.status = replica.customFields. "Engineering Status"

    CommentAdd your comment...

    3 answers

    1.  
      1
      0
      -1

      Since I am writing from a list field to a text field, I also tried "issue.customFields."Engineering Status"?.value = replica.status?.collect{it.name}.join(",")" in the Incoming Sync, but I am still getting the error above. 

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Salma Nairi 

        So I made those edits:

        Outgoing:

        replica.status = issue.status 

        Incoming:

        issue.customFields. "Engineering Status"?.value = replica.status?.name


        but I'm now getting this error:

        Jira Cloud error
        Field Field 'customfield_10177' cannot be set. It is not on the appropriate screen, or unknown.: customfield_10177.


        I verified and that is the ID for the Engineering Status field which is on the project A side. It is on the engineering screen, but it was added after the connection was initiated.

          CommentAdd your comment...
        1.  
          1
          0
          -1

          Hi

          it should be like that

          outgoing

          replica.status = issue.status ( you have to send status from project B)

          In incoming

          issue.customFields. "Engineering Status"?.value ( custom filed on project A) = replica.status?.name ( project B status)

            CommentAdd your comment...