getNotificationSchemeToProjectMappings method
Future<PageBeanNotificationSchemeAndProjectMappingJsonBean>
getNotificationSchemeToProjectMappings({})
Returns a paginated mapping of project that have notification scheme assigned. You can provide either one or multiple notification scheme IDs or project IDs to filter by. If you don't provide any, this will return a list of all mappings. Note that only company-managed (classic) projects are supported. This is because team-managed projects don't have a concept of a default notification scheme. The mappings are ordered by projectId.
Permissions required: Permission to access Jira.
Implementation
Future<PageBeanNotificationSchemeAndProjectMappingJsonBean>
getNotificationSchemeToProjectMappings(
{String? startAt,
String? maxResults,
List<String>? notificationSchemeId,
List<String>? projectId}) async {
return PageBeanNotificationSchemeAndProjectMappingJsonBean.fromJson(
await _client.send(
'get',
'rest/api/3/notificationscheme/project',
queryParameters: {
if (startAt != null) 'startAt': startAt,
if (maxResults != null) 'maxResults': maxResults,
if (notificationSchemeId != null)
'notificationSchemeId': notificationSchemeId.map((e) => e).join(','),
if (projectId != null) 'projectId': projectId.map((e) => e).join(','),
},
));
}