Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Download fails when downloading issues export

davidartrecord
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 22, 2023

When I click the issues export zip link, it starts downloading the approx 238MB file. But at around 141MB it fails over and over again.

I got the modal window that says "Issue export complete" which provided the zip link.

Is there a workaround for this bug?

 

P.S.: Not sure if this is related but a few minutes earlier I had tried to generate the export and got this error in an email notification:

Error exporting attachment: logo-white.svg: b':dev:557058:adf067a4-81b6...

 

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 23, 2023

Hello @davidartrecord ,

Thank you for reaching out to Atlassian Community!

I understand you are trying to export the issues from your repository using the UI and the download is not completing. In this case, I would ask you to try exporting the issues using our public API endpoint Bitbucket Cloud API - Export Issues and check if using the API the download succeeds.

Following are the instructions on how to use the API to export your issues : 

1. Make a request to the Export Issues endpoint with '-v' verbose.
Example curl request:

 curl -v -X POST -u "username:AppPassword" https://api.bitbucket.org/2.0/repositories/workspaceId/reposlug/issues/export 

 Make sure to replace username, app password, workspace and repository.

The response of that API will contain a field named Location similar to the below:

 Location: https://api.bitbucket.org/2.0/repositories/workspaceID/reposlug/issues/export/reposlug-issues-taskid.zip 

Along with the status of the export:

 {"status": "ACCEPTED", "count": 0, "pct": 0, "phase": "Initializing", "total": 0, "type": "issue_job_status"}    

2. Since the export archive may take time to complete depending on the size of the issue,  you can check the status of the export using Check issue export API.

Example curl request:

 curl -X GET -u "username:AppPassword" "https://api.bitbucket.org/2.0/repositories/workspaceID/reposlug/issues/export/reposlug-issues-taskid.zip" 

 Make sure to replace with the the Location URL from step 1.

3. Once the status is complete, you can use the below curl command to download the file locally:

Example curl request:

curl --location -v -X GET -u "username:AppPassword" "https://api.bitbucket.org/2.0/repositories/workspaceID/reposlug/issues/export/reposlug-issues-taskid.zip" -O 

Make sure to replace with the the Location URL from step 1.

Once the download is completed, you should be able to see "reposlug-issues-taskid.zip" file locally.

You can try using the workaround above and let us know how it goes.

In case you have any questions, feel free to ask.

Thank you, @davidartrecord !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events