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
Hello,
I am having problem configure mapping in incoming script in ServiceNow for integer field (on-hold reason), while Jira is sending on-hold reason from text field.
Payload from Jira is below:
In incoming SN script I have tried this, but did not help:
def holdMapping = [
// Jira hold reason <-> SNOW hold reason
"Awaiting Change" : "Awaiting Change"
"Awaiting Vendor" : "Awaiting Vendor"
]
def holdName = holdMapping[replica.customFields."On hold reason"?.name]
incident.hold_reason = holdName
ServiceNow hold_reason field is integer type and looks as below: