Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,377
Community Members
 
Community Events
165
Community Groups

After using the migration assistant attachments do not work

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 Jun 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
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,086 views 2 9
Read article

Community Events

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

Events near you