Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to automate an email with a list of all comments on an issue

A lot of our design team need to "book out" specific issues as they prefer to work offline rather than online, so we often use a pre-made automation system that allows them to receive an email with that issues:

  • Description
  • Attachments (Links)
  • Details (Name of Reporter, date and time created etc.)
  • And most importantly, a list of all comments sent into the issue. 

The problem is that when using {{issue.comments}}, the output of the comments is as below:

email issue.png

All I know regarding this issue is that the extra detail is due to how Jira handles signatures using PNGs and so forth. Using {{issue.comments.html}} makes it return blank. Was wondering if there's another way to have the comments come out in a more clean fashion, whilst also including: the commenter's name, time the comment was posted, and any other information.

2 answers

2 votes
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 22, 2022

@Michael Strong -

Take a look at the following smart value syntax regarding to issue comments (this is also documented in the on-line documentation - https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/) - Just look for {{issue.comment}}

I have used it in Automation for Jira rule using the Send Email action

2022-11-22_10-09-20.png

This is what the email notification that I obtained based on the automation rule testing -

email output.png

Hope this gives you some ideas.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

I've used this method before, but this is the output. Still with that annoying HTML syntax on issues with more email comments from customers:

email issue 2.png

From my research, I learned that using ".html" at the end of some syntax could work (my automation uses {{issue.description.html}} successfully,) but it doesn't work for comments. Is there any other method we're missing?

Notification Assistant for Jira supports up to the last 10 comments in a template if you want something a bit better looking:

Google Chrome 2022-11-22 at 16.00.55.png

I'm not in the market for another application at the moment sadly. Thank you for bringing this to my attention through.

@Boris Berenberg - Modus Create This template is perfect for what I am looking for, but I can't seem to figure out how you built it. Is there anyway you can share it with me please? 

@Boris Berenberg - Modus Create I reached out to support. I do not have the option to enable last 10 comments in advanced settings and my default template doesn't look nearly as good as yours when previewed. Capture.JPG

Hi Shan,

Actually I realized that I said it wrong. That screenshot was a customized version of the Single Issue Template and I added the Last Commented field to it.

Do you have Issue Commented as a trigger in your notification? I believe this is required to get the 10 comment option to appear. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events