Hi,
I am trying to send at least the last comment in an email on transition.
I have tried the 3 solutions from : https://jamieechlin.atlassian.net/wiki/spaces/GRV/pages/33030148/Built-In+Scripts#Built-InScripts-CommentsinEmails
But every time, if there is only one comment, the email sent doesn't include the comment. (I tried lastComment, mostRecentComment & latestPriorComment)
And if I create a second comment, it's sending the last comment as expected.
I can't find a way to send the comment if there is only one.
Any clue?
Dear $issue.reporter.displayName,
Your request has been refused for the following reason :
<% if (lastComment)
out << "Last comment: " << lastComment
%>
Don't hesitate to contact us for more explanation.
Best regards,