RTC: Getting the former comment in a comment notification
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.
I use RTC 3.0.1.3.
Accepted answer
One other answer
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
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