Skip to content

Function: createIssueType() ​

ts
function createIssueType(
   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:44

Creates an issue type.

Permissions required:Administer Jira global permission.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ description?: string; hierarchyLevel?: number; name: string; }-
parameters.description?stringThe description of the issue type.
parameters.hierarchyLevel?numberThe hierarchy level of the issue type. Use: - -1 for Subtask. - 0 for Base. Defaults to 0.
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; }>