Skip to content

Function: getProjectRoles() ​

ts
function getProjectRoles(
   client, 
   parameters, 
   options?
): Promise<Record<string, string>>;

Defined in: src/cloud/api/projectRoles.ts:29

Returns a list of project roles for the project returning the name and self URL for each role.

Note that all project roles are shared with all projects in Jira Cloud. See Get all project roles for more information.

This operation can be accessed anonymously.

Permissions required:Administer Projects project permission for any project on the site or Administer Jira global permission.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ projectIdOrKey: string; }-
parameters.projectIdOrKeystringThe project ID or project key (case sensitive).
options?RequestOptions-

Returns ​

Promise<Record<string, string>>