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
In our ServiceNow instance we have a list of various options to choose from when a ticket is put on hold.
I have copied the script from the help guides, which does update the status from Jira, but how can I also include the abilty to set the value on my additional field?.
What I would like is that if a ticket is put to "Backlog" in Jira, it sets ServiceNow to On Hold and "Awaiting Release"
def statusMap = [
// "remote status name": "local status name"
"Backlog" : "On Hold",
"To Do" : "On Hold",
"In Progress" : "In Progress",
"Done" : "Resolved"
]
def remoteStatusName = replica.status.name
issue.setStatus(statusMap[remoteStatusName] ?: remoteStatusName)
Her