Hijack JIRA issue attach file button

I need to replace the existing JIRA issue attach file button with my own file manager. It would have the same functionality, i.e., clicking it would cause a dialog to pop up where I can select one or more files for upload. Upon successful upload, I would need to refresh the attachment panel to show all the files. I am doing this to work around the 2GB file size limit and to have full control over the repository. What's the best way to do it?

4 answers

This widget could not be displayed.

I assume you are aware that both your user (accessing your JIRA through his browser) and your JIRA server need to support files bigger than 2 GB in order for that to work.

Having that said, you can take a look into file "jira/webapp/secure/views/issue/attachfile.jsp" and start from there maybe.

This widget could not be displayed.

Yes, I am aware of the 2GB server side limitation though I wasn't aware of the browsers limitation, is this still a problem for moderm browsers like Chrome, Firefox, IE, etc.

This widget could not be displayed.

The problem is on the client side OS actually. Browsers usually just call the native FileOpen dialogs, that provide them with the chosen file name and then they use native FileOpen(), FileRead(), etc. methods to get the file content. The idea is that the client OS also needs to be able to support file sizes over 2 GB. The good thing is that most of the modern OS support that :)

P.S. One way to circumvent this limitation is to break the file apart on the user's side (so that each part is less than 2 GB in size), upload those parts on the server and join them, since you control the server and can configure it to support file sizes over 2 GB.

This widget could not be displayed.

My users are on modern browsers, so it shouldn't be a issue, some files are as big as 500+GB, guess I'll find out soon enough :) Thanks for your feedback.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

489 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you