Automation basics
Understand the general concepts and best practices of automation in Atlassian cloud products.
When referencing a field to send an email or notification, you may return undesirable content, specifically, wiki markup. For example, using {{issue.description}} will produce:
1
This text is {color:red}RED{color}
You can use automation to render this as HTML or plain text.
To render HTML, add .html to the end of a field. For example, {{issue.description.html}} will produce:
1
<p>This text is <font color="red">RED</font></p>
This will render the description as HTML.
When sending HTML emails, Jira incorporates existing styles into the email, which may affect how your HTML looks.
Alternatively, you can extract all text from HTML/wiki markup by adding .text to the end of a field. This is often the best way to send a clean email or notification. For example, {{issue.description.text}} will produce:
1
This text is RED
You can also strip unwanted wiki markup from issues created via HTML emails (e.g. font/color tags in descriptions).
1
{{issue.description.text}}
The following fields support rending of HTML or plain text:
Description
Environment
Text Area custom fields
Comments
See use cases where you might use wiki-markup and html in our Jira automation template library.
Was this helpful?