How can I ignore certain statuses from the remote side?

Originally asked by André Leroy-Beaulieu Castro on 27 March 2020 (original question)


I want statuses that are available on the local side but that don’t exist on the destination instance to be ignored in the destination instance. How can I do this?

Thanks,


Answer by Juan Grases on 27 March 2020

You can try something like this on your incoming sync:

def statusMap = ["Done": "Resolved", "In Progress": "In Action"] 
def localStatus = statusMap[replica.status.name]
if(localStatus){
 issue.setStatus(localStatus) 
}


Only statuses find on the map will be applied


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.