def priorityMapping = [
// remote side priority <-> local side priority
“1” : “Blocker”,
“2” : “High”,
“3” : “Medium”,
“4” : “Low”
]
def priorityName = priorityMapping[replica.priority?.name] ?: “Low” // set default priority in case the proper urgency could not be found
issue.priority = nodeHelper.getPriority(priorityName)