Skip to content

Function: getDraftWorkflow() ​

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

Defined in: src/cloud/api/workflowSchemeDrafts.ts:289

Returns the workflow-issue type mappings for a workflow scheme's draft.

Permissions required:Administer Jira global permission.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ id: number; workflowName?: string; }-
parameters.idnumberThe ID of the workflow scheme that the draft belongs to.
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; }>