Info |
---|
|
This routine is available starting with SIL Engine 4.8.0.8. |
Syntax
...
Button handy |
---|
blank | true |
---|
color | #0052CC |
---|
name | Send Feedback |
---|
link | https://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=admGetNotificationSchemeByName+-+15487559 |
---|
width | auto |
---|
|
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 | admGetNotificationSchemeByName(notificationSchemeName) | Package | adm | Alias | | Pkg Usage | notifSchemeByName(notificationSchemeName) | |
Description
Excerpt |
---|
|
Retrieves a breakdown of events and notifications for a provided notification scheme. |
Retrieves a breakdown of events and notifications for a provided notification scheme.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
notificationSchemeName | string | Yes | The name of the notification scheme. | |
Return
...
Type
JGeneric []
Returns an array of key/value pair representations of a notification scheme, where the key is the event name that triggers the notification and the value is a pipe (|) delimited list notification events. If the notification has a designated parameter associated to the notification, then the parameter will be added to the end of the notification type separated by a dash.
Example: Group_Dropdown - jira-administrators
Example
Code Block |
---|
string notificationSchemeName = "Default Notification Scheme";
JGeneric [] notifications = admGetNotificationSchemeByName(notificationSchemeName);
return notifications;
// JSON representation
/*
[{
"name": "Issue Created",
"value": "Remote_User|Group_Dropdown - jira-admin|Single_Email_Address - tim.reiking@cprime.com|User_Custom_Field_Value - customfield_12603|Group_Custom_Field_Value - customfield_10103|Project_Lead|Component_Lead|Single_User - treiking|Project_Role - 10100|Current_Assignee|Current_Reporter|All_Watchers"
}, {
"name": "Issue Assigned",
"value": "Current_Assignee|Current_Reporter|All_Watchers|Group_Dropdown - jira-administrators"
}, {
"name": "Issue Resolved",
"value": "Current_Assignee|Current_Reporter|All_Watchers"
}]
*/ |
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 |
---|
|