Skip to content

Function: getAccessibleProjectTypeByKey() ​

ts
function getAccessibleProjectTypeByKey(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  color?: string;
  descriptionI18nKey?: string;
  formattedKey?: string;
  icon?: string;
  key?: string;
}>;

Defined in: src/cloud/api/projectTypes.ts:66

Returns a project type if it is accessible to the user.

Permissions required: Permission to access Jira.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ projectTypeKey: | string & object | "software" | "service_desk" | "business" | "product_discovery"; }-
parameters.projectTypeKey| string & object | "software" | "service_desk" | "business" | "product_discovery"The key of the project type.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; color?: string; descriptionI18nKey?: string; formattedKey?: string; icon?: string; key?: string; }>