It's all about the answers!

Ask a question

RTC: Getting the former comment in a comment notification


Stephane Rodet (1733) | asked Nov 23 '12, 5:34 a.m.
Getting a comment notification today, I couldn't understand the context of it. The comment mail includes the work item title, which is very useful. Would it be possible to include the former comment in a comment notification, to also view what the current comment is responding to? I think it would help user avoiding logging into RTC to be able to understand what many comments are about.
I use RTC 3.0.1.3.

Accepted answer


permanent link
sam detweiler (12.5k6195201) | answered Nov 23 '12, 7:56 a.m.
you cannot customize the email contents on 3.x..

version 4 provides support for a customized template.. you could change the template to display last and previous comments
Stephane Rodet selected this answer as the correct answer

One other answer



permanent link
sam detweiler (12.5k6195201) | answered Nov 23 '12, 8:40 a.m.
edited Nov 23 '12, 8:43 a.m.
using article 957
here is fragment of a template that will get the last two comment (newest and previous)

#foreach($comment in ${workItem.comments.mostRecentFirst.dropFirst(1).takeFirst(1)})
Previous Comment
${comment.description}
#end

#foreach($comment in ${workItem.comments.mostRecentFirst.takeFirst(1)})
${comment.description}
#end
or you can just display the two

#foreach($comment in ${workItem.comments.mostRecentFirst.takeFirst(2)})
${comment.description}
#end

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.