We are trying to Integrate ServiceNow and Zendesk but can't get the Priority field to update. Get the error "Priority is invalid, Priority cannot be blank"

Originally asked by Champ Yarbrough on 15 November 2020 (original question)


I can’t seem to get the Priority field to update when it changes on either the SN or the ZD side.

I have tried

def priorityMapping = [
// remote side priority <-> local side priority
“Critical” : “Urgent”,
“Important” : “High”,
“Normal” : “Normal”,
“Informational” : “Low”
]
def priorityName = priorityMapping[replica.priority?.name] ?: “Normal” // set default priority in case the proper urgency could not be found
issue.priority = nodeHelper.getPriority(“Normal”) //priorityName)
*/

Along with many other iterations.

Any help would be much appreciated

Champ


Answer by Francis Martens (Exalate) on 15 November 2020

Champ Yarbrough

  • What side is this code sample - ServiceNow or Zendesk
  • What field is the priority field
  • What are the allowed values