13

I would like to migrate all my Bugzilla issues to an Issue Tracker at github.com (Example) (you get an issue tracker per repository).

1) Are there tools out there?

2) How did you do it?

Thanks for any advices, I will write a summary at the end how I finally did it (hopefully not manually!)

basZero
  • 3,868
  • 8
  • 45
  • 84
  • 1
    I know I've seen "Google Code -> Github" converters. So if you find one for converting "Bugzilla -> Google Code" then you could do it in two steps. Quite a roundabout way but it's possible that's the easiest solution out there. – MatrixFrog Sep 02 '11 at 18:16
  • any pointer to the Google Code -> Github converter? – basZero Sep 14 '11 at 12:03
  • 1
    I don't remember where I saw it. Maybe somewhere on reddit. A quick Google search turns up https://github.com/arthur-debert/google-code-issues-migrator but I haven't tried it... – MatrixFrog Sep 14 '11 at 17:14
  • Thanks, I'll check it out and comment here my results... – basZero Sep 15 '11 at 08:03

4 Answers4

11

You need to export your issues from Bugzilla, and then use the GitHub API to upload the issues into GitHub:

http://developer.github.com/v3/issues/#create-an-issue

(note that the old issue-import through GitHub support channels is discontinued)

This does mean your issue numbers will change, so you might want to append a 'Bugzilla-Id' footer to your issue description, so you can use GitHub's free-text search on issues to find them from the old Bugzilla ids.

As far as exporting your data from Bugzilla goes, I think your options are:

Good luck! If you do write an export script, I'd encourage you to open-source it on GitHub!

Roberto Tyley
  • 21,540
  • 9
  • 67
  • 98
3

I recently encountered the same problem trying to migrate Bugzilla issues of a W3C project to GitHub, so I ended up

I hope that my script can be easily modified to fit the purposes of you, too.

quinnirill
  • 796
  • 3
  • 6
1

I wrote a Perl script to handle this last year; effectively you save the bugs you want as XML via Bugzilla's built-in UI for it, and the script uploads them as individual issues.

It uses Net::GitHub::V2 for the uploading API and GitHub's oauth system for authentication. It reads the user and repo config from the environment by default because I was running it from other scripts; but all the variables are at the top of the script if you want to customise.

https://github.com/rowanj/BugzillaMigrate

rvalue
  • 2,371
  • 21
  • 31
0

You can do that with the help of Bondable https://web.archive.org/web/20160304172242/http://www.bondable.com/integrations/p/services/bugzilla

You can actually create a lot of integrations with Bugzilla

Note: As of 2020-03-11, www.bondable.com is no longer hosting a web app, and the original link is spammy

jwhitlock
  • 4,012
  • 3
  • 36
  • 47
sudhanshu
  • 454
  • 4
  • 16