Hi
did someone encounter this problem ? Apparently this is some new error:
Could not create an work item with type `Service Ticket` on project `XXX`: Unable to create request because of these errors : Field with id ‘priority’ named ‘Priority’ has these errors : Specify the Priority (name) in the string format.
What i have tried, and in the past it worked:
def priorityMapping = [
// remote side priority <-> local side priority
"Critical" : "Critical",
"Major" : "Major",
"Minor" : "Minor",
"Trivial" : "Trivial"
\]
def priorityName = priorityMapping[replica.priority?.name] ?: “Minor” // set default priority in case the proper urgency could not be found
issue.priority = nodeHelper.getPriority(priorityName)
OR:
issue.priority = nodeHelper.getPriority(replica.priority?.name) ?: nodeHelper.getPriority(“Minor”)
Thank you in advance !