I must be missing an import, the script below gives me the error:
Cannot find matching method java.lang.Object#plus... Please check if the declared type is right and if the method exists...
Any idea what I may be doing wrong? Same happens if I try to multiply the two values.
import com.atlassian.jira.ComponentManager
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.CustomFieldManager
import com.atlassian.jira.issue.Issue
def value = getCustomFieldValue("Value")
def complexity = getCustomFieldValue("Complexity")
return complexity + value
Thanks in advance!