...
The type of the return value of issue.get(...) depends on the type of the custom field you are accessing. The following table shows the return type for standard custom field types (provided by JIRA):
Field Type | Return Type | Comments |
---|
Checkboxes | Collection< |
com.atlassian.jira.issue.customfields.option.com.atlassian.jira.issue.label.com.atlassian.jira.issue.customfields.option.com.atlassian.jira.issue.customfields.option.Option> | The key in the map represents the field depth of the select list. A key of null is the first level, and a key of "1" (the string "1") is the second level select list. |
Select List (multiple choices) | Collection< |
com.atlassian.jira.issue.customfields.option.com.atlassian.crowd.embedded.api.com.atlassian.jira.user.A lot more custom field types might be available on your JIRA instance, based on the plugins you have installed. The following table shows the return type for the most common "advanced" custom field types:
Field Type | Return Type |
---|
Group Picker (multiple groups) | Collection < |
com.atlassian.crowd.embedded.api.Group> |
Group Picker (single group) |
com.atlassian.crowd.embedded.api.Group
|
Project Picker (single project) |
org.ofbiz.core.entity.com.atlassian.jira.project.com.atlassian.crowd.embedded.api.com.atlassian.jira.user.com.atlassian.jira.project.version.Version> |
Version Picker (single version) |
com.atlassian.jira.project.version.Standard Fields
In the case of standard fields, <field_name>
can be one of the following strings:
com.atlassian.jira.issue.attachment.com.atlassian.jira.project.version.com.atlassian.jira.issue.comments.com.atlassian.jira.bc.project.component.com.atlassian.jira.project.version.com.atlassian.jira.issue.issuetype.com.atlassian.jira.issue.link.com.atlassian.jira.issue.com.atlassian.jira.issue.priority.com.atlassian.jira.issue.resolution.com.atlassian.jira.issue.status.com.atlassian.jira.project.Project | |
security | Long
| security level ID |
timeestimate | Long | |
timeoriginalestimate | Long | |
timespent | Long | |
aggregatetimespent | Long | |
aggregatetimeestimate | Long | |
aggregatetimeoriginalestimate | Long | |
assignee |
com.atlassian.crowd.embedded.api.com.atlassian.jira.user.com.atlassian.crowd.embedded.api.com.atlassian.jira.user.java.sql.java.sql.java.sql.java.sql.com.atlassian.jira.issue.label.com.atlassian.crowd.embedded.api.com.atlassian.jira.user.
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | JMWEKB |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("script","groovy") and type = "page" and space = "JMWEKB" |
---|
labels | groovy script |
---|
|