How to Disable Inline Edit for Assignee Field

お困りですか?

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

コミュニティに質問

プラットフォームについて: 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 は除く

There are users who prefer to have only 'Issue Assigned' event enabled or to have filter notifications mail on 'Issue Assigned' notification. However, because of  JRA-29328 - Getting issue details... STATUS  some users may have missed the notifications when the action was done through either In-line editing or Edit Issue screen. Mostly the concerns are with In-line editing.

Conversely, sometimes the ability to inline edit the Assignee field might be disabled, and the user is not able to see the user dropdown for the Assignee field. This becomes an issue when they run the Permission Helper, and the Helper states that they do have permissions to edit the Assignee. If that is the case, simply reverse the instructions for removing the Assignee Field to re-enable the ability to inline edit the Assignee field if needed.


Remove Assignee Field from Edit Screen

By default, Assignee field is included in the Default Screen and act as 'Create Issue' screen and 'Edit Issue' screen. The following are the steps to remove Assignee field from Default Screen based on JIRA 8.13.x and onward UI.

  1. Go to Administration > Issues > Screens 
  2. Click on Configure link at 'Default Screen'
  3. Find 'Assignee' field and click on Remove button
    (info) The Remove button will show when hovering mouse pointer on the field name


Disable Inline Edit using Javascript

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

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

This steps will disable only In-line editing on the Issue View page, with the 'Assignee' field still showing and editable in 'Edit Issue' screen.

  1. Go to Administration > Issues > Field Configurations 
  2. Click on Configure link at 'Default Field Configuration'
  3. Click on Edit link at 'Assignee'
  4. In the Description field, add the following

    <script type="text/javascript"> 
    var editableElms = AJS.$('#assignee-val')
    if (editableElms.length)	{ 	
    	editableElms.removeClass('inactive'); 
    	editableElms.removeClass('editable-field'); 
    	editableElms.removeAttr('title'); 
    	editableElms.find('span.overlay-icon').hide(); 
    }
    </script>
  5. Go to Administration > System > General configuration > Edit settings

  6. Check for Enable HTML in field descriptions and list item values
  7. If its set to OFF, turn it ON
    (info) Tested working on JIRA 8.13.10 and 9.2.0
最終更新日 2022 年 11 月 28 日

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

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