Skip to content

Function: getSecurityLevelsForProject() ​

ts
function getSecurityLevelsForProject(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  levels?: object[];
}>;

Defined in: src/server/api/projects.ts:779

Returns all security levels for the project that the current logged in user has access to. If the user does not have the Set Issue Security permission, the list will be empty.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ projectKeyOrId: string; }-
parameters.projectKeyOrIdstringKey or id of project to list the security levels for
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; levels?: object[]; }>