Edgewall Software

Ticket #7340 (new defect)

Opened 5 months ago

Last modified 5 months ago

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

Reported by: jholg@… Owned by: jruigrok
Priority: normal Milestone: 0.11-retriage
Component: ticket system Version: 0.11b2
Severity: normal Keywords: patch bugzilla
Cc:

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

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

Change History

Changed 5 months ago by jholg@…

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

Changed 5 months ago by Piotr Kuczynski <piotr.kuczynski@…>

  • keywords patch bugzilla added
  • summary changed from bugzilla2trac.py: work with bugzilla 2.16.7, use bugzilla severities as trac priorities to [PATCH] bugzilla2trac.py: work with bugzilla 2.16.7, use bugzilla severities as trac priorities
  • milestone set to 0.11.2

Add/Change #7340 ([PATCH] bugzilla2trac.py: work with bugzilla 2.16.7, use bugzilla severities as trac priorities)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from jruigrok. Next status will be 'new'
The owner will change from jruigrok to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.