Does add attachment API (https://api.atlassian.com/ex/jira/<id>//rest/api/3/issue/<issueId>/attachments) gives the way to upload file in chunk?
For large file upload, it failed with 504 Gateway Time-out.
I can upload very big files to Jira Cloud and Jira Server, via their REST APIs, using a 3LO OAuth'd session, right up to the attachment size limit that has been set, without any problems.
Your statement that Jira Server "can't handle 15 MB Documents" has no merit. It's only true for you and your circumstance.
Hello @Gaurang Chauhan
In short, the answer is no. If you read the documentation about the v3 Add attachment endpoint, you will see that there is no mention of it providing any sort mechanism to upload attachments in 'chunks', To the contrary, it provides a tip on exactly what to do:
Tip: Use a client library. Many client libraries have classes for handling multipart POST operations. For example, in Java, the Apache HTTP Components library provides a MultiPartEntity class for multipart POST operations.
Next, if you do a Google search of 'jira rest api attachment chunk' you will see where the topic has been discussed in the Atlassian documentation How to transfer large files to Atlassian. It's amazing what Google will find when you use it.
As @Nic Brough _Adaptavist_ has said, your particular upload is failing because the data stream is being interrupted due to a network issue, which is beyond Jira's control.
No, it is a simple block file upload function.
Jira is an issue tracker, not a large file store, it is not intended to be a large file store. It expects attachments to be the odd screenshot or log snippets, not gigabytes of videos or installation images. So it does not handle large files too well.
If you have large files to refer to for some reason, put them on a proper file storage system and link to them in your Jira issues.
Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events