getProjectRoles method

Future<Map<String, dynamic>> getProjectRoles(
  1. String projectIdOrKey
)

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.

Implementation

Future<Map<String, dynamic>> getProjectRoles(String projectIdOrKey) async {
  return await _client.send(
    'get',
    'rest/api/3/project/{projectIdOrKey}/role',
    pathParameters: {
      'projectIdOrKey': projectIdOrKey,
    },
  ) as Map<String, Object?>;
}