How to Hide the Configure Fields Button on the Create Issue Screen

お困りですか?

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

コミュニティに質問

このページの情報は、Jira アプリケーションのカスタマイズに関連しています。アトラシアン サポートの提供内容にカスタマイズは含まれていないため、アトラシアン サポートでは、このページで記載されている手順に対するサポートを保証できません。この資料は情報提供のみを目的としており、記載内容は自己責任の下で行っていただく必要があります。

また、ファイルの直接変更によって行われるカスタマイズは、アップグレード プロセスには含まれない点にご注意ください。このような変更は、アップグレード後のインスタンスで手動で再適用する必要があります。

By default, during issue creation and issue edit, the "Configure Fields" button will be shown on the top right corner of the pop up (refer to the screen capture below). Some administrator would prefer to hide the button to prevent the users from changing the pre-configured fields.


If a user has a custom view before the javascript modification is implemented (i.e. for instance, the user has previously un-checked some of the fields to hide them), they will not be able to change their view (or re-check the hidden fields) until the customisation is removed.


Hiding Jira "Configure Fields" Button without restart

  1. For the javascript to run, you will need to paste the coding on the description area of the field since it supports html codings. To do this, actually you have two choices, you can either create a custom field or utilizing a default field on the screen.
  2. Similar steps are applicable to both default field or custom field after you created a custom field. However do note that, if you used a custom field, the custom field will be visible to the users and hiding it from Field Configuration will disable the javascript pasted on its description.
  3. Navigate to Administration > Issues > Fields > Fields Configurations > Configure to view the list of fields.
  4. Choose the field that you wanted to paste the codes on (recommended to paste on Description Field or Comment Field since both of them is without pre-defined descriptions on them).
  5. Click on edit to show the Field Description.
  6.  Paste the codes provided below to the Description field and Update the field.

    Jira 8 and lower:

    <script type="text/javascript">
    (function($) {
        AJS.toInit(function(){
            // init on load
            AJS.$("#qf-field-picker-trigger").hide();
        })
        JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
            // init on refresh
            AJS.$("#qf-field-picker-trigger").hide();
        });
    })(AJS.$);
    </script>


    Jira 9+ must use the script type module due to it deferring the scripts loading:

    <script type="module">
    (function($) {
        AJS.toInit(function(){
            // init on load
            AJS.$("#qf-field-picker-trigger").hide();
        })
        JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
            // init on refresh
            AJS.$("#qf-field-picker-trigger").hide();
        });
    })(AJS.$);
    </script>
  7. After doing this, you can verify the result by trying to create an issue, the button "Configure Fields" should not be visible anymore. (Refer screen capture below)

Last modified on Mar 21, 2024

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

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