getAssignedPermissionScheme method

Future<PermissionScheme> getAssignedPermissionScheme({
  1. required String projectKeyOrId,
  2. String? expand,
})

Gets the permission scheme associated with the project.

Permissions required: Administer Jira global permission or Administer projects project permission.

Implementation

Future<PermissionScheme> getAssignedPermissionScheme(
    {required String projectKeyOrId, String? expand}) async {
  return PermissionScheme.fromJson(await _client.send(
    'get',
    'rest/api/3/project/{projectKeyOrId}/permissionscheme',
    pathParameters: {
      'projectKeyOrId': projectKeyOrId,
    },
    queryParameters: {
      if (expand != null) 'expand': expand,
    },
  ));
}