Skip to main content
Example scripts
arrow icon
To homepage
Jira
Cloud icon
Cloud

Get multi select list field options

Created 1 year ago, Updated 11 day(s) ago
App in script
ScriptRunner For Jira
ScriptRunner For Jira
by Adaptavist
Compatibility
compatibility bullet
Jira
Language |
groovy
//Get the issue
def issue = Issues.getByKey('<IssueKeyHere>')

//Get the custom field value for the issue by the custom field name i.e. "Teams To Notify Of This Change"
//We know that it is a multi select field and we cast the result to a Map so we can extract the value of each option
def values = issue.getCustomFieldValue('<CustomFieldNameHere>') as Map

values*.value
Having an issue with this script?
Report it here