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!
Thanks to Adaptavist Support for pointing me to this example: https://docs.adaptavist.com/sr4jc/latest/features/script-console/script-examples#id-.ScriptExamplesvCurrent-ExtractingtheValueFromaSelectListCustomField
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.