Hello folks!
I trying to update drop down select custom field in Jira 7.6 and got the error. What is wrong here?
:
def cfm = ComponentAccessor.getCustomFieldManager()
def im = ComponentAccessor.getIssueManager()
MutableIssue issue = im.getIssueObject("OPS-11250")
def portfolioCF = cfm.getCustomFieldObjectsByName("Portfolio")
def portfolioCFget = issue.getCustomFieldValue(portfolioCF)
def portfolioConf = portfolioCF.getRelevantConfig(ussue)
def portfolioCfopt = ComponentAccessor.optionsManager.getOptions(portfolioConf)
log.error("Portfolio options - " + portfolioCfopt)
def value = portfolioCfopt?.find
{
it.toString() == "Some value"
}
log.error("Setting value " + value)
issue.setCustomFieldValue(portfolioCF, value)
No signature of method: com.google.common.collect.SingletonImmutableList.getRelevantConfig() is applicable for argument types: (com.atlassian.jira.issue.IssueImpl) values: [OPS-11250]
groovy.lang.MissingMethodException: No signature of method: com.google.common.collect.SingletonImmutableList.getRelevantConfig() is applicable for argument types: (com.atlassian.jira.issue.IssueImpl) values: [OPS-11250] at set_application.run(set_application.groovy:48)