How to retain formatting of text content when sending it in an email via Automation for Jira

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Cloud のみ - この記事は クラウド プラットフォームのアトラシアン製品に適用されます。

要約

When sending an email using the Send Email component in an Automation rule, you may notice that text formatting and styling are not retained in the actual email if you use smart values to insert issue content in the body of the email. You will also see the Jira wiki markups as they are in the email received making the email difficult to read.

環境

Jira Cloud


原因

This is because using smart values in the body of the email inserts the data in Jira wiki format, and when this is sent to an email inbox, the format is not recognized. 



ソリューション

You would need to convert the Jira format to HTML format for the context to be formatted correctly in the email as well. This can be achieved by appending the smart value with .html. Using this converts the Jira formatted text to HTML, and content is rendered with proper formatting and styling in the email.
Example: 

{{issue.description.html}}

If your Jira issue description contains a table and you use the above-mentioned smart value, you will not see the table border in the email you receive but other formatting/styling will be retained. This is a known limitation currently tracked in AUTO-409 - Getting issue details... STATUS




最終更新日 2024 年 5 月 27 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.