getAllWorkflowSchemes method

Future<PageBeanWorkflowScheme> getAllWorkflowSchemes({
  1. int? startAt,
  2. int? maxResults,
})

Returns a paginated list of all workflow schemes, not including draft workflow schemes.

Permissions required: Administer Jira global permission.

Implementation

Future<PageBeanWorkflowScheme> getAllWorkflowSchemes(
    {int? startAt, int? maxResults}) async {
  return PageBeanWorkflowScheme.fromJson(await _client.send(
    'get',
    'rest/api/3/workflowscheme',
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
    },
  ));
}