getNotificationSchemeForProject method

Future<NotificationScheme> getNotificationSchemeForProject({
  1. required String projectKeyOrId,
  2. String? expand,
})

Gets a notification scheme associated with the project.

Permissions required: Administer Jira global permission or Administer Projects project permission.

Implementation

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