I have written an ugly Perl script that can create Bugzilla bugs from the 
WishList file. It's ugly because it's intended to be used just once.

It should be run in two passes, first with --create and then 
with --crossref. --create will create bugs and write the mapping between 
WishList item numbers and Bugzilla bug numbers to ./importwishlist.bugnumbers 
(WishList item numbers are on the form V/NNN, where V is 3 or 4 and NNN is 
the number on the respective sublist.) --crossref will add comments to the 
items that refer to other items, translating these references.

The "estimated amount of work" codes are translated to keywords, which need to 
be defined in Bugzilla first. A lame guess of component is made, by looking 
for certain keywords. The rest of the fields are set from variables 
initialized near the beginning of the file.

LWP::UserAgent et al. (libwww-perl) are used.

I have of course tested the script locally. You can see the resultat at 
http://proffe.kibibyte.se/cgi-bin/bugzilla/buglist.cgi?product=TestProduct
or p://proffe.kibibyte.se/cgi-bin/bugzilla/show_bug.cgi?id=207 for a specific 
example.

-- 
Magnus Holmgren        [EMAIL PROTECTED]
                       (No Cc of list mail needed, thanks)

Attachment: pgpF5TrsKgBN2.pgp
Description: PGP signature

Attachment: importwishlist.pl
Description: Perl program

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to