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!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.