I have a scripted field that works as expected with number fields. How can I modify the inline script to work with a select list field?
def cv1 = getCustomFieldValue(Field1) as Double;
def cv2 = getCustomFieldValue(Field2) as Double;
def cv3 = getCustomFieldValue(Field3) as Double;
return = (cv1 + cv2 + cv3)
Switching to a select list field, the value coming back is not a number. How do I convert it to a number so I can use it in a calculation?