Jira automation insert new line into the audit log

MA
Contributor
June 3, 2021

Hi community,

I am looking for a way to insert a new line character into the audit log output for Jira Automation.  This is useful for looping through multiple issues and having a new line for audit log output after each issue.

I have tried \n, %n, \r\n and <br> without success.

Anyone have any ideas or solutions?

1 answer

1 accepted

0 votes
Answer accepted
frother
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 7, 2021

Hi,

Thanks for reaching out.

Unfortunately, it is not going to be possible to add in the line breaks. The audit log is printed out as HTML and new line characters have no effect there. HTML tags aren't allowed (they will be printed as text), this is for security reasons so that embedded scripts and like will not be executed.

Sorry,
Scott.

MA
Contributor
June 7, 2021

Thanks for the response @frother .

Kind of what I expected, based on what I'd tried, but it never hurts to ask the community.

There's always a possibility that someone has come up with a clever/creative way to achieve the same end.

Maybe there's a way that HTML formatting could be allowed in the future (through parsing the string for allowed HTML tags) ..... just a thought.

wildingcd
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!
July 28, 2021

@frother Would it be possible to inject using a Smart Value?  If not, it would be a nice feature to support string methods like: {{string.newLine}}

Like Rudy Holtkamp likes this
Mykenna Cepek
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.
April 8, 2022

I'd like to be able to use tab characters.

Why? Copy-and-paste of data to spreadsheets. Sure, CSV works, but it actually takes fewer steps if the data is tab-separated.


NOTE:  I've created a Suggestion for Atlassian to enhance Automation to support this. If you found this article, please vote for it here:

https://jira.atlassian.com/browse/JSWCLOUD-22949

Like # people like this

Suggest an answer

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

Atlassian Community Events