1 import com.atlassian.jira.component.ComponentAccessor 2 import com.atlassian.jira.issue.customfields.manager.OptionsManager 3 import com.atlassian.jira.issue.fields.config.FieldConfig 4 import com.atlassian.jira.issue.fields.config.FieldConfigScheme 5 import com.atlassian.jira.issue.fields.config.manager.FieldConfigSchemeManager 6 import com.atlassian.jira.issue.fields.config.manager.PrioritySchemeManager 7 import com.atlassian.jira.project.Project 8 9 def project = ComponentAccessor.getProjectManager().getProjectObj(10000L) 10 def schemeManager = ComponentAccessor.getComponent(PrioritySchemeManager) 11 def scheme = schemeManager.getScheme(project) 12 def fieldConfig = scheme.getConfigs().get(null) 13 schemeManager.getOptions(fieldConfig) 14 15 schemeManager.getPrioritiesFromIds(schemeManager.getOptions(fieldConfig)).each {log.warn(it.name)}