How to import GitHub issues and wikis to BitBucket?

Recently, we decided to migrate our projects from GitHub to BitBucket. For now, I tested with few projects as BitBucket has direct import feature. Everything is just fine, except GitHub issues, and wikis are not imported. Since most of the projects are still in development and some in production, issues, and wikis are important for us.

I did quick Google search and could not find proper solution.

Is there any solution?


Both github and bitbucket have REST APIs for issues (GitHub's, Bitbucket's), so you could write a (fairly) quick script to migrate issues. However, GitHub has no API for wikis (Bitbucket does), so, unfortunately, you'll likely have to do that by hand.

Today we added proper issue import and export to Bitbucket. You can export an entire repo's issue tracker as a zip and then re-import on a different repo.

You can also create your own zips and so you could write very migration scripts to and from other issue trackers (e.g. GitHub).


File format and data layout:

I was also searching for a way to import Github issues to Bitbucket but didn't find one, so I wrote a script to do that:

For the wiki, it's a Git repository that you can simply clone.

This is the step by step version of Erik van Zijst's resources:

It shows step by step how to do it. Hopefully this will save you some time.

I was able to import all my Github issues into BitBucket!

There is another tool, written in python, for exporting github issues into bitbucket issues export format.

You can check it at gibiexport

I was having the same issue, so I wrote a Python script to help my team migrate our issue data from GitHub to BitBucket:

This script outputs the issue data in a BitBucket-friendly JSON format. As Erik van Zijst specified up above, Atlassian has documentation for importing/exporting BitBucket issue data and the data format required for importing to BitBucket.

Here's the easiest solution I have found:

cd $HOME/dev/Pipelines
git remote rename origin bitbucket
git remote add origin
git push origin master

And when you're happy with Github and don't need the old remote:

git remote rm bitbucket

Need Your Help

What is the HTML entity for a search icon?

css html-entities

I'm trying to put a search icon in the navigation bar of my webpage but I'm not willing to use image for the purpose. Is there a HTML entity for a search icon used in search engines or search bars in

ASP/VBScript - Int() vs CInt()

asp-classic vbscript

What is the difference in ASP/VBScript between Int() and CInt()?