ralli / bz2redmine

Bugzilla to Redmine migration script
Other
13 stars 8 forks source link

Unclear issue when running conversion #7

Closed jpierson closed 12 years ago

jpierson commented 12 years ago

I'm running into the following error when doing my conversion.

<NameError: uncaught throw `there are bug priorities, which cannot be mapped. please modify the ISSUE_TRACKERS in settings.rb accordingly.'>

./bz2redmine.rb:586:in throw' ./bz2redmine.rb:586:inverify_bug_severities' ./bz2redmine.rb:523:in perform_sanity_checks' ./bz2redmine.rb:67:inmigrate' ./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 }

jpierson commented 12 years ago

The issue was that the Bugzilla severity "minor" was not in the ISSUE_TRACKERS section of the settings.rb script.

ralli commented 12 years ago

You are right. Background: There ist no concept like a "tracker" or "issue type" in bugzilla. The logic implemented allows assumptions like "every bug with priority 'enhancement' is a 'requirement', not a bug". You can safely the call to 'verify_bug_severities'. The script will then assume, that every bugzilla bug is a bug in redmine as well.

HtH

Ralph Am 23.02.2012 22:39, schrieb jpierson:

I'm running into the following error when doing my conversion.

<NameError: uncaught throw `there are bug priorities, which cannot be mapped. please modify the ISSUE_TRACKERS in settings.rb accordingly.'>

./bz2redmine.rb:586:in throw' ./bz2redmine.rb:586:inverify_bug_severities' ./bz2redmine.rb:523:in perform_sanity_checks' ./bz2redmine.rb:67:inmigrate' ./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 }


Reply to this email directly or view it on GitHub: https://github.com/ralli/bz2redmine/issues/7