Scriptlets
Summary
The JEMHC Scriptlets feature provides the ability to insert pre-defined message content into Ad hoc notifications. This feature requires Ad hoc notifications to be enabled and authorized for use.
Creating a Scriptlet
Navigate to Notifications > Scriptlets. Use the create action to begin the creation process.
If you have not got a Preview Context to hand, go and generate one from an Issue Event in Auditing > Events
Enter the Scriptlet Name, Language, Preview Content and Content, here its in Wiki markup. The Preview button can be used to show the rendered result
The rendered result, use the same icon to get back to edit mode
Hit submit to save
Using Scriptlets
Navigate to an issue where Ad hoc notifications are enabled and open the pop-up dialog.
Opening the drop down, select the Insert scriptlet content option
Use the filter to locate the Scripted required, and hit paste, it will generate content in the format of the text you editing, so wiki markup Scriptlets will result in formatted TEXT or HTML, as appropriate. Velocity replacements are always run, so $issue is available etc:
The content is injected, and Previewed:
Again, in the Preview, use the same icon to flip back to edit mode:
The received notification.
Scriptlet Functions
Once the Scriptlet is created you will have two available Functions:
Edit
This will open the edit view where you can change the Name, Language and the Content that is created.
Delete
This will delete the Scriptlet from JEMHCloud.