Skip to content

Function: reorderCustomFieldOptions() ​

ts
function reorderCustomFieldOptions(
   client, 
   parameters, 
   options?
): Promise<void>;

Defined in: src/cloud/api/issueCustomFieldOptions.ts:170

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.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ after?: string; contextId: number; customFieldOptionIds: string[]; fieldId: string; position?: string & object | "First" | "Last"; }-
parameters.after?stringThe ID of the custom field option or cascading option to place the moved options after. Required if position isn't provided.
parameters.contextId?numberThe ID of the context.
parameters.customFieldOptionIds?string[]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.
parameters.fieldId?stringThe ID of the custom field.
parameters.position?string & object | "First" | "Last"The position the custom field options should be moved to. Required if after isn't provided.
options?RequestOptions-

Returns ​

Promise<void>