Skip to content

Function: assignPriorityScheme() ​

ts
function assignPriorityScheme(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  defaultOptionId?: string;
  defaultScheme?: boolean;
  description?: string;
  id?: number;
  name?: string;
  optionIds?: string[];
  projectKeys?: string[];
  self?: string;
}>;

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

Assigns project with priority scheme. Priority scheme assign with migration is possible from the UI. Operation will fail if migration is needed as a result of operation eg. there are issues with priorities invalid in the destination scheme. All project keys associated with the priority scheme will only be returned if additional query parameter is provided expand=projectKeys.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ id?: number; projectKeyOrId: string; }-
parameters.id?number-
parameters.projectKeyOrId?stringKey or id of the project
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; defaultOptionId?: string; defaultScheme?: boolean; description?: string; id?: number; name?: string; optionIds?: string[]; projectKeys?: string[]; self?: string; }>