Skip to content

Function: getWorkflow() ​

ts
function getWorkflow(
   client, 
   parameters, 
   options?
): Promise<
  | {
[key: string]: unknown;
  defaultMapping?: boolean;
  issueTypes?: string[];
  updateDraftIfNeeded?: boolean;
  workflow?: string;
}
| object[]>;

Defined in: src/server/api/workflowSchemes.ts:471

Returns the workflow mappings or requested mapping to the caller for the passed scheme.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ id: number; returnDraftIfExists?: boolean; workflowName?: string; }-
parameters.idnumberThe id of the scheme.
parameters.returnDraftIfExists?booleanWhen true indicates that a scheme's draft, if it exists, should be queried instead of the scheme itself.
parameters.workflowName?stringThe workflow mapping to return. Null can be passed to return all mappings. Must be a valid workflow name.
options?RequestOptions-

Returns ​

Promise< | { [key: string]: unknown; defaultMapping?: boolean; issueTypes?: string[]; updateDraftIfNeeded?: boolean; workflow?: string; } | object[]>