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
We want to map priority field values from Snow and Jira.
As suggested in documentation https://docs.idalko.com/exalate/display/ED/Servicenow%3A+urgency%28priority%29+sync
I have done mapping on both sides as per priority field values:
Outgoing sync SNOW:
replica.priority = incident.priority
Incoming Sync SNOW:
def priorityMapping = [
// Jira issue priority <-> SNOW incident priority
"Critical": "1 - Critical",
"Highest": "2 - High",
"Medium": "3 - Moderate",
"Low": "4 - Low",
"Lowest": "5 - Planning"
]
def defaultPriority = "4 - Low"
def priorityName = priorityMapping[replica.priority?.name] ?: defaultPriority // set default urgency in case the proper urgency could not be found
issue.priority = nodeHelper.getPriority(priorityName)
Outgoing sync Jira:
replica.priority = issue.priority
Incoming sync:
//Priority Mapping
def priorityMapping = [
// SNOW incident priority <-> Jira issue priority
"1 - Critical": "Critical",
"2 - High": "High",
"3 - Moderate": "Medium",
"4 - Low": "Low",
"5 - Planning": "Lowest"
]
def priorityName = priorityMapping[replica.priority?.name] ?: "Low" // set default priority in case the proper urgency could not be found
issue.priority = nodeHelper.getPriority(priorityName, issue)
The Priority value is not syncing even after mapping. Please suggest !