Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When you are responding to a user, how many times to you have to ask the same question?  Wouldn't it be great to inject pre-written content?  This is what the JEMHC Scriptlets feature provides, specifically for Ad hoc notifications, but potentially when creating TemplateSet content as well.

Step-by-step guide

...

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.

    Image Added
  2. If you have not got a

    PreviewContext

    Preview Context to hand, go and generate one from an Issue Event in Auditing > Events

  3. Enter the Scriptlet Name, Language, Preview

    Contet

    Content and Content, here its in Wiki markup.  The Preview button can be used to show the rendered

    restult

    result

    Image RemovedImage Added
  4. The rendered result, use the same icon to get back to edit

    -

    mode:

    Image RemovedImage Added
  5. Hit submit to save:

    Image RemovedImage Added
  6. Now in the

    adhoc popup

    ad hoc pop-up, when scriptlets are available:

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

    Image RemovedImage Added
  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:

    Image RemovedImage Added
  9. The content is injected, and Previewed:

    Image RemovedImage Added
  10. Again, in the Preview, use the same icon to

    filp

    flip back to edit mode:

    Image RemovedImage Added
  11. Sending the notification:

    Image RemovedImage Added
  12. The received email (styling could be improved, this is where

    TemplateSets

    Template Sets come in...

    Image RemovedImage Added

 

Info

Filter by label (Content by label)
showLabelsfalse
max5
spacesJEMHC
sortmodified
showSpacefalse

...

reversetrue
typepage
cqllabel in ( "email" , "scriptlet" , "adhoc" ) and type = "page" and space = "JEMHC"
labelsscriptlet email adhoc
Page Properties
hiddentrue

Related issues