Skip to content

Function: reorderIssueTypesInIssueTypeScheme() ​

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

Defined in: src/cloud/api/issueTypeSchemes.ts:262

Changes the order of issue types in an issue type scheme.

The request body parameters must meet the following requirements:

  • All of the issue types must belong to the issue type scheme.
  • Either after or position must be provided.
  • The issue type in after must not be in the issue type list.

Permissions required:Administer Jira global permission.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ after?: string; issueTypeIds: string[]; issueTypeSchemeId: number; position?: string & object | "First" | "Last"; }-
parameters.after?stringThe ID of the issue type to place the moved issue types after. Required if position isn't provided.
parameters.issueTypeIds?string[]A list of the issue type IDs to move. The order of the issue type IDs in the list is the order they are given after the move.
parameters.issueTypeSchemeId?numberThe ID of the issue type scheme.
parameters.position?string & object | "First" | "Last"The position the issue types should be moved to. Required if after isn't provided.
options?RequestOptions-

Returns ​

Promise<void>