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.

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>

上記によって説明は 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:

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:

  • 説明

  • 環境

  • テキスト エリア カスタム フィールド

  • コメント

詳細

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

最終更新日 2021 年 11 月 4 日

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

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