How to hide the Export buttons in Jira server

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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.

*Except Fisheye and Crucible

Problem

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.


Environment

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.

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>

Note:

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.


Last modified on Aug 19, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.