Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#7340 closed defect (fixed)

[PATCH] bugzilla2trac.py: work with bugzilla 2.16.7, use bugzilla severities as trac priorities

Reported by: jholg@… Owned by: Jeroen Ruigrok van der Werven
Priority: normal Milestone: 0.12
Component: ticket system Version: 0.11b2
Severity: normal Keywords: patch bugzilla
Cc:
Release Notes:
API Changes:

Description

Just managed to import my Bugzilla 2.16.7 bugs into the Trac ticket system. I had to patch bugzilla2trac.py:

  1. Defect: to work with the 2.16.7 bugzilla db layout, which seems to use
    • product.product rather than product.name (table product)
    • bugs.product rather that bugs.product_id (table bugs)
    • bugs.component rather than bugs.component_id (table bugs)
    • components.value rather than components.id (table components)
  2. Enhancement: to allow for importing the Bugzilla severities as Trac priorities, and forget about the Bugzilla priorities completely; just like the default out-of-the box trac ticket system "simple setup" these days (no severities, but priorities instead).

I added a new command line parameter ['-n', '—noseverities'] to switch on the latter.

Note1: The patch is based on bugzilla2trac.py in Revision 6820, as downloaded from trac.edgewall.org.

Note2: This has only been tested with my pretty simple setup (single bugzilla product, COMPONENTS_FROM_PRODUCTS = False, custom LOGIN_MAP), and only against Bugzilla 2.16.7

Holger

(Patch attached)

Attachments (1)

bugzilla2trac.py.patch (8.8 KB ) - added by jholg@… 9 years ago.
bugzilla2trac.py patch to (enable bugzilla 2.16.7, —noseverities option)

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by jholg@…

Attachment: bugzilla2trac.py.patch added

bugzilla2trac.py patch to (enable bugzilla 2.16.7, —noseverities option)

comment:1 Changed 9 years ago by Piotr Kuczynski <piotr.kuczynski@…>

Keywords: patch bugzilla added
Milestone: 0.11.2
Summary: bugzilla2trac.py: work with bugzilla 2.16.7, use bugzilla severities as trac priorities[PATCH] bugzilla2trac.py: work with bugzilla 2.16.7, use bugzilla severities as trac priorities

comment:2 Changed 9 years ago by Jeroen Ruigrok van der Werven

Resolution: fixed
Status: newclosed

Committed in r8056.

Thanks!

comment:3 Changed 9 years ago by Christian Boos

Milestone: 0.11-retriage0.12

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jeroen Ruigrok van der Werven.
The resolution will be deleted.
to The owner will be changed from Jeroen Ruigrok van der Werven to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .

 
Note: See TracTickets for help on using tickets.