So, I'm trying to create a custom risk score for Change Management on JSM. I'm using ScriptRunner to create a scripted field.
I'd like to adjust the numeric value of the scripted field (the return value) based on questions set up as select lists. e.g. Question 1: "Have you tested this in a non-prod environment", increments the risk score by 50 if "No" is selected.
Right now, I'm stuck figuring out how to get the values of my question fields.
Does anyone have sample code for this? It appears for cloud it's Typescript and not Groovy (but I could be mistaken).
Thanks in advance!