getNotificationSchemes method

Future<PageBeanNotificationScheme> getNotificationSchemes({
  1. String? startAt,
  2. String? maxResults,
  3. List<String>? id,
  4. List<String>? projectId,
  5. bool? onlyDefault,
  6. String? expand,
})

Returns a paginated list of notification schemes ordered by the display name.

Note that you should allow for events without recipients to appear in responses.

Permissions required: Permission to access Jira, however, the user must have permission to administer at least one project associated with a notification scheme for it to be returned.

Implementation

Future<PageBeanNotificationScheme> getNotificationSchemes(
    {String? startAt,
    String? maxResults,
    List<String>? id,
    List<String>? projectId,
    bool? onlyDefault,
    String? expand}) async {
  return PageBeanNotificationScheme.fromJson(await _client.send(
    'get',
    'rest/api/3/notificationscheme',
    queryParameters: {
      if (startAt != null) 'startAt': startAt,
      if (maxResults != null) 'maxResults': maxResults,
      if (id != null) 'id': id.map((e) => e).join(','),
      if (projectId != null) 'projectId': projectId.map((e) => e).join(','),
      if (onlyDefault != null) 'onlyDefault': '$onlyDefault',
      if (expand != null) 'expand': expand,
    },
  ));
}