ralli / bz2redmine Goto Github PK
View Code? Open in Web Editor NEWBugzilla to Redmine migration script
License: Other
Bugzilla to Redmine migration script
License: Other
When I do the migration, administrator priviliges aren't transferred over. To fix I have to manually go in and add:
use redmine; update users set admin = 1 where login = "[email protected]";
I'm running into the following error when doing my conversion.
./bz2redmine.rb:586:in throw' ./bz2redmine.rb:586:in
verify_bug_severities'
./bz2redmine.rb:523:in perform_sanity_checks' ./bz2redmine.rb:67:in
migrate'
./bz2redmine.rb:623
It is unclear to me because the error message reads "bug priorities" bun then points me to the ISSUE_TRACKERS section of the setup.rb file which is supposed to map to seventies and not Bugzilla priorities. Looking at my values everything looks to be as expected so I'm not sure what the problem is.
Below is how I have my settings.rb file configured.
ISSUE_PRIORITIES = {
"Low" => 1,
"Medium" => 2,
"High" => 3 }
ISSUE_TRACKERS = {
"critical" => 1,
"trivial" => 1,
"minimal" => 1,
"major" => 1,
"normal" => 1,
"blocker" => 1,
"enhancement" => 1
}
Cross references and links between bugzilla bugs and redmine issues have a different syntax.
So after migration links between redmine issues get lost.
These are the patterns within bugzilla bugs which will be turned into a link (found at section 5.8.1. Autolinkification of the bugzilla online help)
The types of links supported by Redmine can be found at:
http://www.redmine.org/projects/redmine/wiki/RedmineTextFormatting
It would be relatively easy to support Links to different bugs.
Links to attachments would need a somewhat special handling since only links to attchments within the same issue are supported.
It would be a good feature migrate the cross references between bugzilla bugs to redmine (at least the easy cases).
bz2redmine fails with a "NameError: uninitialized constant BugzillaToRedmine::Net" when migrating LDAP users from Bugzilla to Redmine, i.e. settings.rb is configured as follows:
The fix was to edit bz2redmine.rb to require the net-ldap gem, e.g.:
...
require "rubygems"
require "mysql"
require "net/ldap"
...
Could someone please implement this fix?
Thanks!
Database Version mysql Ver 14.12 Distrib 5.0.67, for suse-linux-gnu (x86_64) using readline 5.2
Ruby version 1.8.7 (x86_64-linux)
Rails version 2.1.2
Redmine Vesion 0.8.6
Issues created by bz2redmine have a due-date of 0000-00-00. This would not validate when the issue is entered directly in Redmine, and leads to runtime errors in the Gantt chart.
I've PostgreSQL behind both bugzilla and redmine and I wish to use your tool for the migration.
I've changed the require="mysql" to require="pg" and replaced the
return Mysql::new(info.host, info.user, info.password, info.dbname)
with the equivalent for ruby-pg
return PGconn.connect(info.host, 5432, "", "", info.dbname, info.user, info.password)
Now I'm getting errors on the bz_select_sql, red_exec_sql and red_select_sql which, for what I understood, are the three functions used to read/write on the two databases (bugzilla and redmine).
I'm actually trying to convert those functions to their equivalent for the ruby-pg APIs but I'm really noob to ruby so I could appreciate your help.
BTW, I'm trying to migrate form bugzilla 3.2.2 to redmine 0.9.1
I'm getting an error when I try and run the migration:
sudo ruby bz2redmine.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- settings (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from bz2redmine.rb:29:in `<main>'
I've copied the script and the settings into the redmine directory
I've renamed example_settings.rb to settings.rb
For some reason it's not picking up the settings though. Does it have to be run from a specific location? ..or is this a bug?
Currently when you import all your projects they appear as 'archived' which means you have to go in and manually un-archive each one.
It would be better if they automatically appeared without the need to perform this extra step.
Hi.
Is this any posibility to use this migration script to migrate from bugzilla witch is on oracle DB to redmine witch is on postgre ?
Redmine version is 3.3.3.stable
Ruby version 2.3.1-p112
Rails version 4.2.6
I'm attempting to convert my Bugzilla database on Ubuntu and and new to Linux, Redmine, and Ruby so I'm learning as I go along. I've installed the BitNami stack for redmine in hopes to simplify installing Redmine but I found that ruby seems to be installed under the BitNami-redmine stack as a sort of self contained dependency which meant that running bz2redmine.rb didn't work directly until I installed ruby1.8 using apt-get. I chose ruby1.8 because I remembered that in some of the Redmine documentation that 1.9 wasn't yet supported so I figured this bz2redmine.rb script would probably be written to target the same ruby that Redmine uses.
After running bz2redmine.rb after installing ruby1.8 I get the following error.
./bz2redmine.rb:27:in `require': no such file to load -- rubygems (LoadError)
from ./bz2redmine.rb:27
I'm guessing that I'm missing another dependency? I'm not familiar at all with ruby and searching for this specific error in google doesn't seem to point out how to resolve the issue.
Any improvements in the documentation on what the exact dependencies are and how to run this script for somebody who may not be familiar with Ruby or Linux would be very helpful.
Thanks for writing a wonderful tool, helped us migrate over from our bugzilla setup to Redmine.
The latest versions of Redmine (ours is 1.1.1) have changed the mail_notification slot to a text value for different settings (it's not just 0/1 anymore). This was causing problems with our Redmine update, with ''Email notifications is not in the list" errors showing up in Redmine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.