Confluence has been updated to ver 6.15.9. In case of any troubles, please contact infra team.

Status sync not working

 
1
0
-1
Hello, we need to sync only one status Closed. There is lot of different statuses on both sites. We only need to sync, if one issue is closed, other issue should close too. But we are getting error - "Can not find status `Fixing` in workflow `NEW Client WEB Workflow_EN_v1`" On Jira1 outgoing sync is: replica.status = issue.status On Jira2 incoming sync is: def statusMap = ["Closed": "Closed"] def remoteStatusName = replica.status.name issue.setStatus(statusMap[remoteStatusName] ?: remoteStatusName) what are we doing wrong? thank you
    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi!

      Something like this would work:

      Incoming script:

      if(replica.status.name == "Closed"){
        issue.status = replica.status
      }

      This assumes the status is named Closed on both sides, if it's named different, you might do:


      if(replica.status.name == "Closed"){
        issue.setStatus("Done")
      }
        CommentAdd your comment...