How to clear a custom field value through an automation rule during issue clone

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

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

要約

By default, Automation for Jira does not list all the fields that we want to clear their current/default values.

環境

  • 8.0.0 以降の任意のバージョンの Jira Server/Data Center
  • Automation For Jira (A4J) Server/Data Center on any version from 7.4.0

ソリューション

You can follow the steps below to clear any field values when you clone an issue:

  • Navigate to the Automation rules page and create a new rule
  • Select Issue Created
  • Click on New Action, select Edit Issue and then click on More options
  • Paste the script below into the scripting area: 
    {
      "fields": {
        "customfield_10301": null
      }
    }

     You need to replace 10301 with your custom field ID. You can find it by navigating to Administration > Issues > Custom Fields, then click on the ... > Edit details. You will find a number at the end of the URL. You need to replace 10301 with that number. It's the field ID

  • Save the rule and then test it with cloning one of the issues that has a value in the field in question.




最終更新日: 2025 年 1 月 15 日

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

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