How to hide the Export buttons in Jira server

お困りですか?

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

コミュニティに質問

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

問題

Jira users are able to export either a search result or an individual issue because of the Export button. To restrict the users from exporting data from this feature in Jira, it is possible to hide this button and prevent it from appearing on the page.


環境

This workaround has been tested in Jira 7.1.9, Jira 7.5.0 and 8.20.10, however there are differences between these versions regarding the workaround.

回避策

The button can be hidden with a custom CSS script in the announcement banner. This workaround is tested in 8.20.10. It should work in other 8.x version as well as in 7.5 as well.

  • To hide the export button on Issue Navigator page on higher Jira versions

    <style type="text/css">
    div.saved-search-operations button.header-views
    {display:none;}
    </style>
  • To hide the export button on Issue View page

    <style type="text/css">
    #viewissue-export {
            display:none;
            }
    </style>

    Put both if you want the button of both pages removed. Both of these can be clubbed in single <style>....</style> tag as well.


IMPORTANT: If the workaround above didn't work for the button on Issue Navigator page on your Jira version, especially if it's around Jira version < 7.5, try the following CSS in the announcement banner:

    • To hide the export button on Issue Navigator page

      <style type="text/css">
      div.saved-search-operations ul.operations li:nth-child(2)
      {display:none;}
      </style>
    • To hide the export button on Issue View page

      <style type="text/css">
      div.toolbar-split-right ul.pluggable-ops li:nth-child(2)
      {display:none;}
      </style>

注意:

This approach is only able to hide these button from the page.  It does not prevent users from using the REST API to potentially obtain this same data in another method or format.


最終更新日 2022 年 8 月 19 日

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

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