Function: publishDraftWorkflowScheme()
ts
function publishDraftWorkflowScheme(
client,
parameters,
options?
): Promise<void>;Defined in: src/cloud/api/workflowSchemeDrafts.ts:262
Publishes a draft workflow scheme.
Where the draft workflow includes new workflow statuses for an issue type, mappings are provided to update issues with the original workflow status to the new workflow status.
This operation is asynchronous. Follow the location link in the response to determine the status of the task and use Get task to obtain updates.
Permissions required:Administer Jira global permission.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { id: number; statusMappings?: object[]; validateOnly?: boolean; } | - |
parameters.id | number | The ID of the workflow scheme that the draft belongs to. |
parameters.statusMappings? | object[] | Mappings of statuses to new statuses for issue types. |
parameters.validateOnly? | boolean | Whether the request only performs a validation. |
options? | RequestOptions | - |
Returns
Promise<void>