Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3

The JEMHC Scriptlets feature provides the ability to insert pre-defined message content in Ad hoc notifications.

Creating a scriptlet

  1. Navigate to Notifications > Scriptlets. Use the create action to begin the creation process.

  2. If you have not got a Preview Context to hand, go and generate one from an Issue Event in Auditing > Events

  3. 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

  4. The rendered result, use the same icon to get back to edit mode:

  5. Hit submit to save:

  6. Now in the ad hoc pop-up, when scriptlets are available:

  7. Opening the drop down, select the Paste Scriptlet option:

  8. 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:

  9. The content is injected, and Previewed:

  10. Again, in the Preview, use the same icon to flip back to edit mode:

  11. Sending the notification:

  12. The received email (styling could be improved, this is where Template Sets come in...

 

  • No labels