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?
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.