Formatting Jira Field in Confluence Database

jason
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 1, 2024

I am creating a database in confluence that will track specific Customer Service tickets. 

 

One of the things I wanted to include in the database was the comments on jira tickets as we were copying customer responses into the comments. Unfortunately it looks like the jira issue field for comment doesn't populate anything 

Screenshot 2024-08-01 135846.png

 

So instead I created a custom field that has a Smart Value automation based off this doc so that every time there is a new comment it runs

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

But when I actually run the script it makes it all the comments into one continuous line that is very hard to read. What can I do to format it to be more legible? For now I just added a line of equal signs to break up the text but I would like to use a more proper solution

Screenshot 2024-08-01 141004.png

1 answer

0 votes
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2024

@jason welcome to the Atlassian community 

Here is an example of how to get the line break added https://community.atlassian.com/t5/Jira-questions/Automation-how-to-add-a-new-line-into-smart-variable/qaq-p/2430570 

Suggest an answer

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

Atlassian Community Events