Creating a Groovy extension script for alerts

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