getWorkflowScheme method

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

Returns a workflow scheme.

Permissions required: Administer Jira global permission.

Implementation

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