How to send email with issue content and comments

Teke Máté January 29, 2025

Dear Community!

We would like to send an email to our external partner about certain issues (issues that are set to a specific status)

 

However, we would also like to add the existing comments that were present in the Jira system, before the sending. Currently our automation looks the following:


As you might see, it includes the attachments, but not the comments. Is there a way to include the comments? The whole point is, that if we can not solve the issue internally, we need to send an email to our partner to Level 3, but they do not use Jira. 

issue.png

Thank you in advance.

1 answer

1 accepted

2 votes
Answer accepted
Dick
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 29, 2025

Hi @Teke Máté 

That's possible and documented in the Atlassian documents on smart values that refer to issue contents/variables. The smart values can be put into the mail, they are translated to their text equivalent upon processing of the automation.

You need to follow the special format for the automation to interpret the list of objects you want to be translated to text:

 

{{#issue.comments}} Comment by: {{author.displayName}} at: {{created}} {{body}} {{/}}

the {{/}} being the closing of the {{#  list iteration.

Kind regards,

Dick

Teke Máté January 29, 2025

Thank you, it has been very useful, and it already works! Found out that we were missing the # sign.

Like Dick likes this
Dick
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 29, 2025

Hi @Teke Máté 
If you mark this as the answer, folks with a similar question can find it easier.

Kind regards,

Dick

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events