Versions Compared

Key

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

Table of Contents

...

Comment rendering macroDescriptionOrder
#renderComments($!issue)Renders all comments of the issue which are not restricted to groups or roles nor are internal comments in Service DeskManagement.Ascending
#renderCommentsInReverseOrder($!issue)Renders all comments of the issue which are not restricted to groups or roles.Descending
#renderServiceDeskPublicComments($!issue)Same as #renderComments($!issue)Ascending
#renderServiceDeskInternalComments($!issue)Renders Service Desk Management internal comments of the issueAscrending
#renderAllComments($!issue)Renders all comments of the issue. Comments may be internal or public, restricted or visible to all.Ascending
#renderLastComment($!issue)Renders the last comment entered in the issue
#renderComment()Renders the comment entered during the operation
#renderCurrentComment()Alias of #renderComment()
#renderIssueComments(<sorting> <number of comments> <restrictions>)

Generic, multi-purpose comment rendering macro. 

Status
colourGreen
titlesince 8.0.3

Parameters:

<sorting>: "asc" or "desc"

<number of comments>: an positive integer number or "all" to render all comments matching <restrictions>

 <restrictions>: comment restrictions, values are

  • empty: render all comments regardless of the restrictions
  • "none": render comments which are not limited to groups, roles or which are not internal in Service DeskService Management 
  • "public": render Service Desk Management public comments
  • "internal": render Service Desk Management internal comments

Render Comments in emails using traditional templates

...

Code Block
#set($publicComments = $!jetiFieldRenderer.reverse($!publicComments))

Last Comment

In operations when the users enter a comment (like issue update, or workflow transitions), the comment they enter can be referred to as $!comment or $!htmlComment depending on the content type of the template.

In other cases, afte reversing the comment list, you can access the last one easily:

...