I'm using Jamie's wonderful script runner but I'm not a coder and can't seem to get by the nulpointerexception.
So far I have this:
def urgency = getCustomFieldValue("Urgency")
def complexity = getCustomFieldValue("Complexity")
def need = getCustomFieldValue("Need")
def effort = getCustomFieldValue("Effort")
def result = (effort * complexity) / (urgency * need)
return result
Those 4 custom fields are all numeric and so is my script field (as well as the template and searcher are all set up as numeric).
I guess I need some sort of test to ensure that all of those numbers are not null before trying to do the calculation or else return null?
Can someone give me the code I need? Thanks...