Creating a Groovy extension script for alerts
-
Create an extension script.
- Script Type should be set to alerts.
- Class must extend from
AlertsRowSourceScriptable.
-
Create an Alert Definition
- Set
EXTENSIONSCRIPT
as the Source Type.
- For Extension Script, select the extension script
that you created in the previous set.
-
Create a task in JS to point to the above alert definition.
- For Task Type, select from the list.
- Select Parameters for the task and then select
the alert definition as Alert Type.
-
Perform the task and confirm that the task has been successfully
completed.
-
Check the messages. There should be a message generated as per the script
requirement.