getSecurityLevelsForProject method

Future<ProjectIssueSecurityLevels> getSecurityLevelsForProject(
  1. String projectKeyOrId
)

Returns all issue security levels for the project that the user has access to.

This operation can be accessed anonymously.

Permissions required: Browse projects global permission for the project, however, issue security levels are only returned for authenticated user with Set Issue Security global permission for the project.

Implementation

Future<ProjectIssueSecurityLevels> getSecurityLevelsForProject(
    String projectKeyOrId) async {
  return ProjectIssueSecurityLevels.fromJson(await _client.send(
    'get',
    'rest/api/3/project/{projectKeyOrId}/securitylevel',
    pathParameters: {
      'projectKeyOrId': projectKeyOrId,
    },
  ));
}