Hi,
I have a custom field which is of multi select and it stores only the key. In order to fetch the value I'm writing a listener event during creation and updating event where the key will be converted from string to list and then iterating the list to get the summary.
The summary is being iterated for the first element in the list.
However, the iteration is not successful and throws the below error:
Script function failed on event: com.atlassian.jira.event.issue.IssueEvent, file: <inline script>
java.lang.NullPointerException: Cannot invoke method getSummary() on null object
at com.atlassian.jira.issue.Issue$getSummary$9.call(Unknown Source)
wordlist = new ArrayList(Arrays.asList(str))
wordlist.each{
def value = it.toString()
if(it){
def issueTex = issueManager.getIssueObject("${value}")
def summary = issueTex.getSummary()
}
}