wiki マークアップや HTML を扱う

Jira のプロセスとワークフローを自動化する

このページの内容

お困りですか?

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

コミュニティに質問

robotsnoindex
robotsnoindex

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:

This text is {color:red}RED{color}

You can use automation to render this as HTML or plain text.

Rendering HTML

To render HTML, add .html to the end of a field. For example, {{issue.description.html}} will produce:

<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.

Rendering plain text

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:

This text is RED

You can also strip unwanted wiki markup from issues created via HTML emails (e.g. font/color tags in descriptions).

{{issue.description.text}}

サポートされるフィールド

The following fields support rending of HTML or plain text:

  • 説明

  • 環境

  • Text Area custom fields

  • コメント

詳細

See use cases where you might use wiki-markup and html in our Jira automation template library.

最終更新日 2021 年 11 月 8 日

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

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