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

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 Leaders.
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 Leaders.
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

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