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
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { id: number; workflowName?: string; } | - |
parameters.id | number | The ID of the workflow scheme that the draft belongs to. |
parameters.workflowName? | string | The 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; }>