getNotificationScheme method

Future<NotificationScheme> getNotificationScheme({
  1. required int id,
  2. String? expand,
})

Returns a notification scheme, including the list of events and the recipients who will receive notifications for those events.

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

Implementation

Future<NotificationScheme> getNotificationScheme(
    {required int id, String? expand}) async {
  return NotificationScheme.fromJson(await _client.send(
    'get',
    'rest/api/3/notificationscheme/{id}',
    pathParameters: {
      'id': '$id',
    },
    queryParameters: {
      if (expand != null) 'expand': expand,
    },
  ));
}