Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
Hi team,
I’m working on synchronization between 2 Jira projects (same instance). Everything was working fine until I bumped into the status sync. For example here is the scenario → In the source project a have a set of statuses and in the destination project I have another set and some of them aren’t the exact match. So I went ahead and defined the status map as following:
========================================================
def statusMap = [
"Waiting for Approval": "Waiting for IZ Approval",
"Waiting for Approval": "Waiting for AX Approval",
"In Progress": "Code Review",
"Ready for QA Deployment": "In Progress",
"Blocked Testing": "In Progress",
"Ready for Test": "In Progress",
"Testing": "In Progress",
"Ready for Acceptance": "Ready for IZ Acceptance",
"Ready for Acceptance": "Ready for PQA deployment",
"Ready for Acceptance": "Ready for AX Acceptance",
"Ready for Acceptance": "Ready for MKT/CPL Acceptance"
]
def remoteStatusName = replica.status.name
issue.setStatus(statusMap[remoteStatusName] ?: remoteStatusName)
=========================================================
To give more clarification - the way I'm trying to map is the following:
"Waiting for Approval (Target Project)" : "Waiting for IZ Approval (Source Project)"
Error I'm getting: "Can not find status `Waiting for IZ approval` in workflow `LXP Story Workflow (v2)`. You might want to map status Waiting for IZ approval to a existing status in your workflow for the issue"
Thanks in advance.
-E