Opened 18 years ago
Closed 8 years ago
#571 closed enhancement (worksforme)
Allow links to legacy Bugzilla tickets
Reported by: | Owned by: | javajunky | |
---|---|---|---|
Priority: | normal | Component: | BugzillaIssueTrackingPlugin |
Severity: | minor | Keywords: | |
Cc: | Trac Release: | 0.9 |
Description
We're in the process of moving from Bugzilla to Trac and have made the decision not to import existing bugs to prevent the introduction of a lot of garbage into our shiny new Trac installation. Instead, we'll be using TracTickets for new bugs and simply referencing Bugzilla for legacy bug entries. It would be great if we could access either through Trac. Perhaps retaining the "#" notation for referencing Trac tickets and adding "BZ#" notation for Bugzilla tickets?
Of course, I have no idea whether this is possible, but it would be a really nice addition.
Attachments (0)
Change History (3)
comment:2 Changed 14 years ago by
A working solution for this is to use the RegexLinkPlugin with the following configuration:
[regexlink] regex1=\bbug (?P<bug_id_comment>\d+) comment #(?P<commentid>\d+)\b url1=http://your.trac.instance.com/ticket/\g<bug_id_comment>#comment:\g<commentid> regex2=\bbug (?P<bug_id>\d+)\b url2=http://your.trac.instance.com/ticket/\g<bug_id>
This will correctly link all bug X and bug X comment Y links to the equivalent trac URLs
If you are moving your svn into Trac, then you need to change commit messages, this will be a hard work.