I've run into an issue where the {{comment.author}} and {{comment.body}} tags are not working when I attempt to use them on the Project Automation page in Jira Service Desk.
Now comment on an issue by replying to the "new request" email or by adding a comment directly using the web portal.
The notification that is sent has the comment.author shown as a random string of characters.
The comment.body will parse hyperlinks strangely and occasionally will add things like {color:grey} to the end of the comment body. The {color:grey}{color} seems to only happen when the comment is made via email from a known user. Emails from non-user requestors don't have the {color:grey} problem.
I know there is a "Customer Notification" module, but that does not grant access to customizing emails that Agents receive. I'm trying to create a custom email for agents when a comment is made and I'm noticing this strange glitch with the comment tags.
I tried removing all HTML and using just the comment tags and I had the same problems with the comment.author being a random id, {color:grey} tag after the comment.body, and hyperlinks being parsed incorrectly.
I figured out the issue with the author. You need to use {{comment.author.displayName}}
I was referencing this: https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/
But then I saw the displayName property listed here: https://support.atlassian.com/jira-software-cloud/docs/what-are-smart-values/
when using comment.body, if someone adds a username picker, it shows the account ID number instead of the person's name. Do you know how to resolve it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.