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?
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.
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.
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:
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events