Hello,
Im having big troubles trying to get the last comment from a specific user to be sent with the custom email.
Here is the code i currently have:
<p><% if (mostRecentComment)
out << "<p>------Response Message------</p>" << "\n" << "\n" << mostRecentComment << "</p>"
else if (issue.description)
out << "<p>------Original Message------</p>" << "\n" << "\n" << "<p>" << issue.description << "</p>"
else null %>
The issue with the above is that it will send the last comment in the ticket, how can i modify this code to send "lastComment" from a specific user?
i tried to use this following code:
<% out << comments.authorKey[-1] == "customer.care" %>
But its pulling currentuser name.
Many thanks! and i really appreciate your help.
Cheers,
Pon