IssueCustomFieldOptions
Creates, modifies, deletes, and queries the configured issue custom field options in Jira.
Table-Specific Information
In Jira Cloud, this object is exposed as a table and supports CREATE, UPDATE, and DELETE (CUD) operations. In Jira Data Center, this object is exposed as a view instead of a table, and CUD operations are not supported.
SELECT
Jira Cloud
To execute a query in Jira Cloud, you must specify both the CustomFieldId and the Context.SELECT * FROM IssueCustomFieldOptions WHERE CustomFieldId = 'customfield_10107' AND Context = 10307;
SELECT * FROM IssueCustomFieldOptions WHERE OptionId = 10000;
Jira Data Center
To execute a query in Jira Data Center, you must specify the CustomFieldId if you are not using the OAuth 2.0 AuthScheme.SELECT * FROM IssueCustomFieldOptions WHERE CustomFieldId = '10104';
SELECT * FROM IssueCustomFieldOptions WHERE OptionId = 10000;
INSERT
Insert a custom field option by specifying the following fields:- Name
- CustomFieldId
- Context
INSERT INTO IssueCustomFieldOptions (CustomFieldId, Context, Name) VALUES ('customfield_10107', '10307', 'NewAddedOption');
NOTE: This statement is supported only for Jira Cloud instances.
UPDATE
Update a custom field option by specifying the OptionId, CustomFieldId, and Context in the WHERE clause.UPDATE [IssueCustomFieldOptions] SET Name = 'NewUpdatedOption123', OptionId = '10866' WHERE CustomFieldId = 'customfield_10107' AND Context = '10307' AND OptionId = '10866';
NOTE: This statement is supported only for Jira Cloud instances.
DELETE
Delete a custom field option by specifying the OptionId, CustomFieldId, and Context in the WHERE clause.DELETE FROM [IssueCustomFieldOptions] WHERE CustomFieldId = 'customfield_10107' AND Context = '10307' AND OptionId = '10866';
NOTE: This statement is supported only for Jira Cloud instances.
Columns
| Name | Type | ReadOnly | References | SupportedOperators | Platform | Description |
| OptionId [KEY] | String | False | = | Common |
The ID of the custom field option. | |
| Name | String | False | Common |
The Name of the custom field option. | ||
| CustomFieldId | String | False | IssueCustomFields.Id | = | Common |
The ID of the custom field. |
| Context | String | False | CustomFieldContext.Id | = | Cloud |
The context of the custom field option. |
| Disabled | Boolean | False | Common |
Indicates whether the option is disabled. |