Skip to content

Function: updateIssueType() ​

ts
function updateIssueType(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  avatarId?: number;
  description?: string;
  entityId?: string;
  hierarchyLevel?: number;
  iconUrl?: string;
  id?: string;
  name?: string;
  scope?: {
   [key: string]: unknown;
     project?: {
      [key: string]: unknown;
        avatarUrls?: {
         [key: string]: unknown;
           16x16?: string;
           24x24?: string;
           32x32?: string;
           48x48?: string;
        };
        id?: string;
        key?: string;
        name?: string;
        projectCategory?: {
         [key: string]: unknown;
           description?: string;
           id?: string;
           name?: string;
           self?: string;
        };
        projectTypeKey?:   | string & object
           | "software"
           | "service_desk"
           | "business"
           | "product_discovery"
           | "customer_service";
        self?: string;
        simplified?: boolean;
     };
     type?: string & object | "PROJECT" | "TEMPLATE";
  };
  self?: string;
  subtask?: boolean;
  untranslatedName?: string;
}>;

Defined in: src/cloud/api/issueTypes.ts:94

Updates the issue type.

Permissions required:Administer Jira global permission.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ avatarId?: number; description?: string; id: string; name?: string; }-
parameters.avatarId?numberThe ID of an issue type avatar. This can be obtained be obtained from the following endpoints: - System issue type avatar IDs only - System and custom issue type avatar IDs
parameters.description?stringThe description of the issue type.
parameters.id?stringThe ID of the issue type.
parameters.name?stringThe unique name for the issue type. The maximum length is 60 characters.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; avatarId?: number; description?: string; entityId?: string; hierarchyLevel?: number; iconUrl?: string; id?: string; name?: string; scope?: { [key: string]: unknown; project?: { [key: string]: unknown; avatarUrls?: { [key: string]: unknown; 16x16?: string; 24x24?: string; 32x32?: string; 48x48?: string; }; id?: string; key?: string; name?: string; projectCategory?: { [key: string]: unknown; description?: string; id?: string; name?: string; self?: string; }; projectTypeKey?: | string & object | "software" | "service_desk" | "business" | "product_discovery" | "customer_service"; self?: string; simplified?: boolean; }; type?: string & object | "PROJECT" | "TEMPLATE"; }; self?: string; subtask?: boolean; untranslatedName?: string; }>