Skip to content

Function: getWorkflow() ​

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

Defined in: src/cloud/api/workflowSchemes.ts:433

Returns the workflow-issue type mappings for a workflow scheme.

Permissions required:Administer Jira global permission.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ id: number; returnDraftIfExists?: boolean; workflowName?: string; }-
parameters.idnumberThe ID of the workflow scheme.
parameters.returnDraftIfExists?booleanReturns the mapping from the workflow scheme's draft rather than the workflow scheme, if set to true. If no draft exists, the mapping from the workflow scheme is returned.
parameters.workflowName?stringThe name of a workflow in the scheme. Limits the results to the workflow-issue type mapping for the specified workflow.
options?RequestOptions-

Returns ​

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