Function: updateIssueType()
function updateIssueType(client, parameters): 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:83
Updates the issue type.
Permissions required:Administer Jira global permission.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { avatarId?: number; description?: string; id: string; name?: string; } | - |
parameters.avatarId? | number | The 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? | string | The description of the issue type. |
parameters.id | string | The ID of the issue type. |
parameters.name? | string | The unique name for the issue type. The maximum length is 60 characters. |
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; }>