Hey all,
It’s probably just something ■■■■■■ thing I am missing or overseeing.
I have jira automation watching for a fieldchange which then fires an Scriptrunner script which should fill a radiobuttons customfield based on a string.
// Get fields
def issue = issueManager.getIssueObject(issueKey)
def TypeCF = cfm.getCustomFieldObject("customfield_11215")
// Get values
def Type = "String"
// Get TypeCF options
def TypeCFconfig = TypeCF.getRelevantConfig(issue)
def TypeCFoptions = optionsManager.getAllOptions()
def TypeCFoption = TypeCFoptions.find { it.value == Type }
issue.update {
issue.setCustomFieldValue(TypeCF, TypeCFoption)
}
Within the Script Console this outputs the issuekey, but within the automation rule I am getting
No signature of method: com.adaptavist.hapi.jira.issues.delegate.IssueUpdateDelegate.setCustomFieldValue() is applicable for argument types: (com.atlassian.jira.issue.fields.ImmutableCustomField, com.atlassian.jira.issue.customfields.option.LazyLoadedOption) values: [Type, String]
Hope someone can help.