getDefaultWorkflow method

Future<DefaultWorkflow> getDefaultWorkflow({
  1. required int id,
  2. bool? returnDraftIfExists,
})

Returns the default workflow for a workflow scheme. The default workflow is the workflow that is assigned any issue types that have not been mapped to any other workflow. The default workflow has All Unassigned Issue Types listed in its issue types for the workflow scheme in Jira.

Permissions required: Administer Jira global permission.

Implementation

Future<DefaultWorkflow> getDefaultWorkflow(
    {required int id, bool? returnDraftIfExists}) async {
  return DefaultWorkflow.fromJson(await _client.send(
    'get',
    'rest/api/3/workflowscheme/{id}/default',
    pathParameters: {
      'id': '$id',
    },
    queryParameters: {
      if (returnDraftIfExists != null)
        'returnDraftIfExists': '$returnDraftIfExists',
    },
  ));
}