POST /rest/api/2/field/{fieldId}/context/{contextId}/option
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.
Servers
- https://your-domain.atlassian.net
Path parameters
Name | Type | Required | Description |
---|---|---|---|
fieldId |
String | Yes |
The ID of the custom field. |
contextId |
Integer | Yes |
The ID of the context. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
options[] |
Array | No |
Details of options to create. |
options[].disabled |
Boolean | No |
Whether the option is disabled. |
options[].value |
String | Yes |
The value of the custom field option. |
options[].optionId |
String | No |
For cascading options, the ID of a parent option. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.