chhantyal
chhantyal

Reputation: 12262

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?

Upvotes: 28

Views: 7998

Answers (7)

Evan Williams
Evan Williams

Reputation: 154

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.

Upvotes: 0

kikeenrique
kikeenrique

Reputation: 2669

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

You can check it at gibiexport

Upvotes: 1

infinite-loop
infinite-loop

Reputation: 902

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!

Upvotes: 3

user3342048
user3342048

Reputation: 55

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

Upvotes: -5

Erik van Zijst
Erik van Zijst

Reputation: 2331

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

Upvotes: 24

sorich87
sorich87

Reputation: 871

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

Upvotes: 13

Rafe Kettler
Rafe Kettler

Reputation: 76985

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.

Upvotes: 11

Related Questions