Jira の要約フィールドに既定値を設定する方法

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

[Unable to render {include} The included page could not be found. ({include} をレンダリングできません。ページが見つかりませんでした)] を選択し、

要約

Summary is a required field in Jira issue creation and there is no default way user can set a default way for issue Summary field. This workaround will help user to inject a default value via JavaScript.

回避策

このページで提供される回避策には、カスタム JavaScript の使用が含まれます。このようなカスタマイズやスクリプト作成はアトラシアン サポートのサポート対象外です。コードを本番環境インスタンスに適用する前にテストを行うことを強くおすすめします。

  1. For Jira versions 8.7.0 and above only, you will need to enable the setting Enable HTML in custom fields descriptions and list item values by following the steps below. (warning) Please take note of the impact of enabling this setting, which is explained in the information panel at the top of this article.
    1. Go to ⚙ > System > General Configuration
    2. Click on Edit Settings
    3. Turn ON the setting Enable HTML in custom fields descriptions and list item values
    4. Click on Update at the bottom of the page
  2. 対象のプロジェクトの [フィールド構成] に移動します。
  3. [要約] フィールドを見つけます。
  4. [編集] をクリックします。
  5. フィールドの [説明] に次の JavaScript を挿入します。

    <script type="text/javascript">
    if (document.getElementById("summary").value == "") {
    document.getElementById("summary").value = "<Default Value for Summary>\n";}
    </script>

    (info) Replace <Default Value for Summary> with the desired default value for the Issue Summary field.

最終更新日 2022 年 4 月 26 日

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

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