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 Version History

Version 1 Next »

The following script examples are related to filtering deleted comments from outbound notifications.

Understanding the JSON event data for a comment

JEMHC uses event data provided by Atlassian as JSON payload as the information necessary to render outbound notifications for Transport types such as Email, Slack, Telegram etc…

By default JEMHC uses the first comments property to render Just added comments as per:

Rre-existing comment rendering examples can be found:

## Iterating over the latest comments the recipient can see...
#foreach( $comment in $jemhUtils.filterRestrictedComments($context.comments))
  ##filter deleted
  #if(!$comment.deleted)
    ## rendering the comment below is a simple example
    $jemhUtils.wikiToHtml($comment.body.textValue())
    ## tagging processing telling the notification system that a comment has been rendered ...
    $jemhUtils.setCommentRendered()
  #end
#end

  • No labels