Internal
Create a new instance of the service.
Creates options and, where the custom select field is of the type Select List (cascading), cascading options for a custom select field. The options are added to a context of the field.
The maximum number of options that can be created per request is 1000 and each field can have a maximum of 10000 options.
This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations.
Permissions required: Administer Jira global permission.
The ID of the context.
The ID of the custom field.
Returned if the request is successful.
example:
{
"options": [
{
"disabled": false,
"id": "10001",
"value": "Scranton"
},
{
"disabled": true,
"id": "10002",
"optionId": "10000",
"value": "Manhattan"
},
{
"disabled": false,
"id": "10003",
"value": "The Electric City"
}
]
}
Deletes a custom field option.
Options with cascading options cannot be deleted without deleting the cascading options first.
This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations.
Permissions required: Administer Jira global permission.
The ID of the context from which an option should be deleted.
The ID of the custom field.
The ID of the option to delete.
Returns a custom field option. For example, an option in a select list.
Note that this operation only works for issue field select list options created in Jira or using operations from the Issue custom field options resource, it cannot be used with issue field select list options created by Connect apps.
This operation can be accessed anonymously.
Permissions required: The custom field option is returned as follows:
The ID of the custom field option.
Returned if the request is successful.
example:
{
"self": "https://your-domain.atlassian.net/rest/api/3/customFieldOption/10000",
"value": "To Do"
}
Returns a paginated list of all custom field option for a context. Options are returned first then cascading options, in the order they display in Jira.
This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations.
Permissions required: Administer Jira global permission.
The ID of the context.
The ID of the custom field.
Optional
maxThe maximum number of items to return per page.
Optional
onlyWhether only options are returned.
Optional
optionThe ID of the option.
Optional
startThe index of the first item to return in a page of results (page offset).
Returned if the request is successful.
example:
{
"isLast": true,
"maxResults": 100,
"startAt": 0,
"total": 4,
"values": [
{
"id": "10001",
"value": "New York"
},
{
"id": "10002",
"value": "Boston",
"disabled": true
},
{
"id": "10004",
"value": "Denver"
},
{
"id": "10003",
"value": "Brooklyn",
"optionId": "10001"
}
]
}
Changes the order of custom field options or cascading options in a context.
This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations.
Permissions required: Administer Jira global permission.
The ID of the context.
The ID of the custom field.
Returned if options are reordered.
Replaces the options of a custom field.
Note that this operation only works for issue field select list options created in Jira or using operations from the Issue custom field options resource, it cannot be used with issue field select list options created by Connect or Forge apps.
Permissions required: Administer Jira global permission.
The ID of the context.
The ID of the custom field.
Optional
jql?: stringA JQL query that specifies the issues to be updated. For example, project=10000.
The ID of the option to be deselected.
Optional
replaceThe ID of the option that will replace the currently selected option.
Updates the options of a custom field.
If any of the options are not found, no options are updated. Options where the values in the request match the current values aren't updated and aren't reported in the response.
Note that this operation only works for issue field select list options created in Jira or using operations from the Issue custom field options resource, it cannot be used with issue field select list options created by Connect apps.
Permissions required: Administer Jira global permission.
The ID of the context.
The ID of the custom field.
Returned if the request is successful.
example:
{
"options": [
{
"disabled": false,
"id": "10001",
"value": "Scranton"
},
{
"disabled": true,
"id": "10002",
"value": "Manhattan"
},
{
"disabled": false,
"id": "10003",
"value": "The Electric City"
}
]
}
Protected
Static
initialize
This resource represents custom issue field select list options created in Jira or using the REST API. This resource supports the following field types:
See Issue custom field options (apps) to manipulate custom issue field select list options created by a Connect app.
Use it to retrieve, create, update, order, and delete custom field options.
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options