Forums

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

After using the migration assistant attachments do not work

Kevin Holy
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!
June 10, 2022

I just used the cloud migration assistant to migrate from the server platform to the cloud. After the migration I noticed that every attachment on our pull requests was no longer working. The images just say failed to load and when we uploaded txt documents those now just show text where there used to be a link to click and download the file. 

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 14, 2022

Hello @Kevin Holy ,

Welcome to Atlassian Community.

The Bitbucket Cloud Migration Assistant (BCMA) indeed does not currently support the migration of attachments and it currently just copies the filename, not the actual content of the file.

However, we have the following script that might help you with the replication of the attachments in the Pull Requests on your server/DC instance to your Bitbucket Cloud instance :

The process involves locating all attachments within comments by reading any particular PR's activity log. Once we identify the file, we can download it to the local working machine. We replace space characters with underscores, since that will happen anyway when uploading to cloud but we do it early to better keep track of everything, and then we append the PR id (of the PR it belongs to) as well as a random 8 digit hash to the end of the filename (before the file's extension) to make sure it's unique and won't collide with any other files that we previously uploaded. Once the file exists in the new repo's "downloads" folder, we can then hyperlink to it from a new pr comment in the matching prs.

Please note that this tool was NOT written by Atlassian developers and is considered a third-party tool. This means that this is also NOT supported by Atlassian. We highly recommend you have your team review the script before running it to ensure you understand the steps and actions taking place, as Atlassian is not responsible for the resulting configuration.

Hope that helps! Let me know in case you have any questions.

Thank you, @Kevin Holy .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events