provider Project roles GET /rest/api/3/project/{projectIdOrKey}/roledetails
@utdk/jira /rest/api/3/project/{projectIdOrKey}/roledetails
Get project role details
Returns all [project roles](https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/) and the details for each role. Note that the list of project roles is common to all projects. This operation can be accessed anonymously. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project.
projectIdOrKey path required
The project ID or project key (case sensitive).
string
currentMember query
Whether the roles should be filtered to include only those the user is assigned to.
boolean
excludeConnectAddons query
boolean
excludeOtherServiceRoles query
Do not return the default JSM company-managed space from CSM spaces, or the default CSM roles from JSM spaces.
boolean

Try it

Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getprojectroledetails
GET/rest/api/3/project/{projectIdOrKey}/roledetails
Returns all [project roles](https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/) and the details for each role. Note that the list of project roles is common to all projects. This operation can be accessed anonymously. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project.

Parameters

required

The project ID or project key (case sensitive).

Whether the roles should be filtered to include only those the user is assigned to.

Do not return the default JSM company-managed space from CSM spaces, or the default CSM roles from JSM spaces.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import jira from '@utdk/jira';

await jira.getprojectroledetails({
  "currentMember": false,
  "excludeConnectAddons": false,
  "excludeOtherServiceRoles": false
})