1
0
-1

Hi,

i have a sync between ZD and JSD.

some tickets in ZD are getting to 'closed' status. on ZD, both incoming and outgoing are set with 

if (issue.status == "closed"){
return
}

(not sure its needed, since it doesnt seem to work and was only added after i got the error). 

what can i do to avoid the error from appearing?

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Hi! Could you try:

      if (issue.status?.name == "closed"){
        return
      }

      If that doesn't work. You will need to also check the remote status (replica.status.name is not the one that would close your zendesk ticket.

      if (issue.status?.name == "closed" || replica.status.name == "Closed"){
        return
      }

      Use the right status name for the replica status.

        CommentAdd your comment...
      1.  
        1
        0
        -1
        1. Juan Grases

          Unfortunately this only works for Jira Cloud

        CommentAdd your comment...