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 Next »

This script will gather and render all comments that the recipient has permission to view. e.g. Internal Comments are not rendered for Customers.

#set ( $comments = $jemhUtils.filterRestrictedComments($context.issue.fields.comment.comments) )
#if ( $comments.size() > 0 )
    $jemhUtils.setCommentRendered()
#end
#foreach ($aComment in $comments)
    <strong>$jemhUtils.getUserDescription($aComment.author)</strong>
    <em>$aComment.updated.asText():</em>
    <p>$jemhUtils.wikiToHtml($aComment.body.asText())</p>
#end

Screenshot of how the comments would appear within the notification

image-20240124-112425.png

  • No labels