Hi,
I want to only add last comment to the email. But if there is only one comment in the issue, I can't send. If there are two or more comments, I can send last comment.
JIRA v712.1
Scriptrunner v5.6.1
Thanks for help.
TALEBİNİZ:
<br>
$issue.description
<br>
<br>
"<% if (mostRecentComment)
out << "COZUM: " << mostRecentComment
%>"
<br>
<br>
Bu mail XXX Yardım Masası tarafından gönderilmiştir. Sorununuz devam ediyor ise lütfen yeni bir çağrı açınız. Lütfen bu e-postayı cevaplamayınız.
Try with lastComment
but notice if don't have a comment returns null as describe here:
https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_send_a_custom_email
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.