1
0
-1
- Martin Niňaj
- May 04, 2020
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
Zdroj: Jira Server/Datacenter
- connector-onpremise-jira
- Comment
CommentAdd your comment...
1 answer
- 10-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...
Overview
Content Tools
search
attachments
weblink
advanced