Skip to end of banner
Go to start of banner

admAddNotificationsToScheme

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description

Adds the given list of notification to the given notification scheme

Parameters

Return Type

boolean

Returns true if the notification were added, false otherwise.

Example

Example

Adds notifications to the notification scheme with id "10005"

JIssueNotificationSchemeNotificationDetail[] notificationDetails;
JIssueNotificationSchemeNotificationDetail notificationDetail; //https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-notification-schemes/#api-rest-api-3-notificationscheme-post
notificationDetail.notificationType = "Group";
notificationDetail.parameter = "site-admins";
notificationDetails = arrayAddElement(notificationDetails, notificationDetail);
JIssueNotificationSchemeEvent[] notificationEvents;
JIssueNotificationSchemeEvent notificationEvent;
notificationEvent.event = "1";
notificationEvent.notifications = notificationDetails;
notificationEvents = arrayAddElement(notificationEvents, notificationEvent);
return admAddNotificationsToScheme(10005, notificationEvents);

See also

  • No labels