Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Formating email message creeated by Jira Automation in the Jira cloud


Hello, our company is facing some difficulties with formatting used in automation. 

Right now I am working on sending content of the last comment added to the issue. 

I am able to acquire this content by this smart value: 


I have 2 main problems with this value. 

1. When someone write exclamation mark "!" I will get exclamation mart with slash "\!"

2. When someone will use color i am getting these markup in this content, for example {color:red} Mother {color}. I want to get rid of this markup, even at a cost of loosing this colorfull information. 

I have tried to replace these text marks, but these expressions...: 

a) {{issue.comments.last.body.replaceAll("({color.*})","")}} 

b) {{issue.comments.last.body.replaceAll("(\\{color.*\\})","")}} 

c) {{issue.comments.last.body.replaceAll("\\{color.*\\}","")}} 

... returns only errors. I expect that it is because i want ot replace these brackets {}, but I really want to replace of them.

Can someone advise how to do this? Any workaround will also be appreciated. 

2 answers

I found this document that solved this problem for me.

Convert wiki markup to HTML or plain text in Jira automation 

Basically, for the text field you are including, add ".html" or ".text" to the end of the field name inside the double-braces.

e.g.: {{issue.description.html}}

Super helpful!


in ".html" mode, it adds weird extra spacing before and after the field. Is that expected?

also, if the field does have some numbered lists in it, it adds additional spacing on top of the extra spacing pre and post field. so it looks kinda terrible.


any suggestions?

0 votes
Boris Berenberg - Atlas Authority
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.
Feb 14, 2022

Not sure about a fix in Jira Automation, but we had to create our own markup parser in Notification Assistant for Jira. It handles most of these scenarios, but we still have some special edge cases where we need to improve. Unfortunately there isn't a parsing library that Atlassian has made available, and seemingly this is true even for internal tools.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events