Expose and display comments of an issue

Velocity Markup

Comments accessed in this way are unrendered:

#foreach ($cmt in $allComments.getComments($issue)) <p>$wikiRenderer.render($cmt.body, null)</p> #end

Rendering the comments 

Rendering converts the wiki markup in the comments to more formatted TEXT or HTML:

#foreach ($cmt in $allComments.getComments($issue)) <p>$wikiRenderer.render($cmt.body, $issueRenderContext)</p> #end

Styling and Presentation

Just putting out the content may not be sufficient, the following was supplied by a user to improve that:

<style type="text/css"> <!-- a {color:#fc6558}; a:visited {color:#fc6558}; .comment { margin-left: 40px; width: 650px; color:#6d7072; } --> </style>





Related Articles