Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | admAddNotificationsToScheme(notificationSchemeId, notificationsToBeAdded) | Package | adm | Alias | | Pkg Usage | addNotificationsToScheme(notificationSchemeId, notificationsToBeAdded) | |
Description
Excerpt |
---|
|
Adds notifications to a notification scheme. |
Adds the given list of notification to the given notification scheme
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
notificationSchemeId | integer | Yes | The id of the notification scheme | notificationsToBeAdded | JIssueNotificationSchemeEvent [] | Yes | The list of notifications to be added | |
Return Type
boolean
Returns true if the notification were added, false otherwise.
Example
Example
Adds notifications to the notification scheme with id "10005"
Code Block |
---|
|
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
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "notification_admin_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|
We've encountered an issue exporting this macro. Please try exporting this page again later.