Skip to content

Function: createProjectRole() ​

ts
function createProjectRole(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  actors?: object[];
  description?: string;
  id?: number;
  name?: string;
  self?: string;
}>;

Defined in: src/server/api/projectRoles.ts:27

Creates a new ProjectRole to be available in Jira. The created role does not have any default actors assigned.

Parameters ​

ParameterType
clientClient
parameters{ description?: string; name?: string; }
parameters.description?string
parameters.name?string
options?RequestOptions

Returns ​

Promise<{ [key: string]: unknown; actors?: object[]; description?: string; id?: number; name?: string; self?: string; }>