The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Separate multiple comments with breaks instead of comas

Rich Nuzzi
Contributor
August 23, 2021

HI, I am using an automation to send an email. Part of the automation and email is to insert the issue comments into the email. The issue have multiple comments. When Jira sends the email, the comments are all strung together and are separated by comas. I would like each comment to be separated by a page break (enter keystroke). How would I do this? Thank you.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Bill Sheboy
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 Champions.
August 23, 2021

Hi @Rich Nuzzi 

The comments field is a list of comments; you may use the iterator functions to do this: https://support.atlassian.com/jira-software-cloud/docs/smart-values-lists/#Smartvalueslists-Combinedfunctionexamples

For example to show then as a bulleted list:

Here are the comments:
{{#issue.comments}}
* {{author.displayName}}: {{body}}
{{/}}

Best regards,
Bill

Rich Nuzzi
Contributor
August 24, 2021

Thank you. Worked great. Much appreciated.

Like Bill Sheboy likes this
Bill Sheboy
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 Champions.
August 24, 2021

Rich, I am glad to learn that helped.  Please consider marking this question as answered.  That will help others in the community find solutions faster.  Thanks!

__Bill

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events