provider Issue custom field options PUT /rest/api/3/field/{fieldId}/context/{contextId}/option/move
@utdk/jira /rest/api/3/field/{fieldId}/context/{contextId}/option/move
Reorder custom field options (context)
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)](#api-group-issue-custom-field-options--apps-) operations.** **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
fieldId path required
The ID of the custom field.
string
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.

reordercustomfieldoptions
PUT/rest/api/3/field/{fieldId}/context/{contextId}/option/move
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)](#api-group-issue-custom-field-options--apps-) operations.** **[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 context.

Input

The ID of the custom field option or cascading option to place the moved options after. Required if `position` isn't provided.

required

A list of IDs of custom field options to move. The order of the custom field option IDs in the list is the order they are given after the move. The list must contain custom field options or cascading options, but not both.

The position the custom field options should be moved to. Required if `after` isn't provided.

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.reordercustomfieldoptions()