provider Issue custom field options DELETE /rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}/issue
@utdk/jira /rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}/issue
Replace custom field options
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](#api-group-Issue-custom-field-options) resource**, it cannot be used with issue field select list options created by Connect or Forge apps. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
replaceWith query
The ID of the option that will replace the currently selected option.
integer
jql query
A JQL query that specifies the issues to be updated. For example, *project=10000*.
string
fieldId path required
The ID of the custom field.
string
optionId path required
The ID of the option to be deselected.
integer
contextId path required
The ID of the context.
integer

Try it

Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

replacecustomfieldoption
DELETE/rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}/issue
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](#api-group-Issue-custom-field-options) resource**, it cannot be used with issue field select list options created by Connect or Forge apps. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).

Parameters

required

The ID of the custom field.

required

The ID of the option to be deselected.

required

The ID of the context.

The ID of the option that will replace the currently selected option.

A JQL query that specifies the issues to be updated. For example, *project=10000*.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import jira from '@utdk/jira';

await jira.replacecustomfieldoption()