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?

Answers


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).

Details: https://confluence.atlassian.com/display/BITBUCKET/Export+or+Import+Issue+Data

File format and data layout: https://confluence.atlassian.com/pages/viewpage.action?pageId=330796872


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: https://github.com/sorich87/github-to-bitbucket-issues-migration.

For the wiki, it's a Git repository that you can simply clone. https://github.com/blog/699-making-github-more-open-git-backed-wikis


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

http://codetheory.in/export-your-issues-and-wikis-from-github-repo-and-import-to-bitbucket-migration/

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: https://github.com/Brethren-Studios/issue-migrator

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 https://github.com/edwardaux/Pipelines.git
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()?