Table of Contents |
---|
...
Comment rendering macro | Description | Order | ||||||
---|---|---|---|---|---|---|---|---|
#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 issue | Ascrending | ||||||
#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.
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
|
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:
...