Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable export on Structure for Jira?

Rekha Priyesh May 12, 2020

Hi, 

We have structure plugin and many teams have created massive structure drawing many projects into it. Whenever anyone try to export data from those structures, the performance of the whole instance gets a hit. So, we were thinking of disabling export on Structure. I think there is no easy way. So, has anyone done so or any other suggestions to disable the export option from the structure view? Thanks.

Just FYI, our Jira version is 7.x and planning the upgrade to 8.x soon. Nevertheless, I am interested to know if there are any possibilities.

2 answers

2 accepted

2 votes
Answer accepted
Ignacio Pulgar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2020

Hi @Rekha Priyesh ,

The option to disallow exporting structures is not present in Structure's global configuration page.

However, there are a couple of workarounds for achieving what you need, although neither of them are elegant or specially recommended.

I've tried these methods with Jira 8.6.1 and Structure 6.0.

Workaround 1. Disable the module which provides the export to excel functionality

Go to the Manage Apps page, expand Structure plugin and click on the modules link:

modules.PNG

Once you can see all module, look for (Ctrl + F) the excel-export module, hover the mouse over it, and click on the Disable button that will be shown on the right side:

excel-export.png

On disabling that module, users clicking the export to excel button will find a dead link.

 

Workaround 2. Hide the Export button by adding CSS or JavaScript to Jira's Announcement Banner

The second hacky workaround consists of following the steps described on this page for injecting either CSS or JavaScript code into the Announcement Banner order to hide the Export button.

In my case, the button has the id s-tb-export-selector, not sure if that's the same id in your version.

So, I've had to add the following CSS code in order to remove the Export button:

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

You may check the id of the Export button by right clicking on it > Inspect element:

id.png

Hope it helps.

Mario O.G
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2020

Great answer, Ignacio! 

Thanks a bunch.

Mario O.G
[ALM Works]

Like Ignacio Pulgar likes this
Ignacio Pulgar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2020

Thank you, @Mario O.G !

I'll never forget how you showed me the power of Structure formulae, master! :)

From that point on, I've studied Expr language and used it a lot!

It's amazing what can be done with this tool and a little bit of imagination.

Best regards!

Ignacio

Like Mario O.G likes this
Mario O.G
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2020

Thank you for the kind words, @Ignacio Pulgar! You're awesome.

Like Ignacio Pulgar likes this
Rekha Priyesh May 12, 2020

Thank you Ignacio, that's a good idea. But, getting our PO accept a solution where the users are lead to a dead link might be hard as he cares a lot for usability. But, it still helps with our performance issues. So, I will try them out. Appreciate your time :)

Like Ignacio Pulgar likes this
1 vote
Answer accepted
Mario O.G
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2020

Hi Rekha, 

Sorry to hear about the trouble! 

You can disable the Export to Excel feature by opening:

Administration > Add-ons > Manage add-ons - scroll down to Structure

Click on + xx of xx Modules Enabled, and search (Command/Ctrl+F) for module "servlet:Excel Export." Once you found it, click "Disable."

As for the reported behavior, it would be helpful if we could take a look at some logs to see what happens when one of your team members try to export a large structure to excel.

I see that we have an improvement in our backlog that relates to a similar scenario, but it would be nice if we could investigate the details of your case to see if it matches.

If you wish, you can open a support ticket with us by signing up for an account through our customer portal or by shooting an email to support@almworks.com

All the Best, 

Mario O.G
[ALM Works]

Rekha Priyesh May 12, 2020

Thanks Mario, I will contact you through you portal for further support.

Suggest an answer

Log in or Sign up to answer