|
Yes, the Bugzilla portlet would likely be sufficient to cover this.
> Would the inclusion of a Bugzilla portlet (see
As far as I understand, it leaves links like "bug#101, comment#1" from Bugzilla descriptions/comments broken – let me know if I'm wrong. Denis,
We'll be happy to convert that sort of inline link (as the Mantis importer does). Do you know if bug#xxxx is the convention? Jeff,
Please refer to this links (section Autolinkification): I could not find more formal docs – perhaps it's best to refer to Zilla sources. For me, both "bug 12345" and "bug#12345" work. Denis,
Thanks a lot - that's just what I was after. Agreed, the auto-linkification would be a great feature to be able to do in Bugzilla imports. Voting for this issue as a proxy for auto-linking
Giving the issue a more correct subject.
Is there any progress on this issue? I'm evaluating Jira now and importing our existing Bugzilla database is a must. Without those inline links the import is not going to be that useful for us.
Mikhail, others,
I've had a go at implementing this. If you'd like to try it, please download the attached .jar and run 'jar xvf path/to/bugzilla_translatelinks.jar' in the WEB-INF/classes/ directory (this will replace the existing .class files). It requires JIRA 3.4-beta1. Cheers, – Has anybody got bugzilla's autolinkofication regexp/source?
BTW, you can test bugzilla's autolinkofication algorithm at https://bugzilla.mozilla.org/page.cgi?id=linkify.html Sorry if I am stating the obvious, but bugzilla is open source software, so it should be possible to dig through its code and find the right piece.
Has this statement passed "Triple Filter Test" I've found the following:
Hi Sam,
Thanks for this pointer - I have reopened this issue and we shall look at improving the regexp to better match the bugzilla regexp. Thanks, For implementing this, we should look at reusing the logic used for FogBugz importer. That importer correctly handles rewriting issue keys from "bug 1, 2, 3" to "issues KEY-1, KEY-2, Key-3", which I believe is also what's required here
There is only one bug-matching regexp in Bugzilla, and it is almost identical to the one JIRA uses:
my $bug_re = qr/bug\s*\#?\s*(\d+)/i; As for converting 'bug 1, comment 2' to a link, I don't think it's going to be feasible. JIRA has no built-in behaviour for linking to comments, so the importer would have to emulate it with an absolute URL to the issue + comment permalink. Eg. the text "please see bug 1, comment 2" would become "please see http://jira.atlassian.com/browse/JRA-3779#action_1234 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Would the inclusion of a Bugzilla portlet (see
JRA-3777) meet your needs? It allows JIRA issues to be searched for by their old Bugzilla ID.