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:
Existing Comments - Render All Comments from Issue :
## 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