Instead of writing
[[yourBugZillaURL/path/shob_bug.cgi?id=123][Bug #123]] for every bug this plugin provides a convenient way to to this. Now, you only have to write
%BUG{123}% to get the same result. This plugin does nothing else than giving your a shorthand for the above plus it places a nice bug-icon next to the bug. Have fun!
Since version 1.1 there is another shorthand to display buglists depending on your milestones. Just specify a milestone in the list tag like this
%BUGLIST{1.8}% and you will get all bugs that have a target milestone of 1.8 or 1.8b. The beta thing is hard coded, so if you dont neet this you have to change this in the code, but as far as I know you can also ignore it.
In version 1.2 a shorthand for the 'mybugs' feature was added.
In version 1.3 there is a possibility to set a target for the bugzilla link (like targets in html href commands). So e.g.
%BUG{"BUGID" target="_blank"}% or
%BUG{"BUGID" target="_top"}% is possible.
Syntax Rules
-
%BUG{yourBugzillaBugNumberGoesHere}%
-
%BUGLIST{yourBugzillaMilestoneNumberGoesHere}%
-
%MYBUGS{user@some.domain}%
-
%BUG{"yourBugzillaBugNumberGoesHere" target="_blank"}%
Example
- %BUG{12}%
- %BUGLIST{1.8}%
- %MYBUGS{joe@loos.er}%
- %BUG{"12" target="_blank"}%
BugzillaLinkPlugin Settings
Plugin Installation Instructions
- You can install manually from the command-line:
- Download one of the
.zip or .tgz archives
- Unpack the archive in the root directory of your TWiki installation.
- Run
configure and enable the module.
Files
-
lib/TWiki/Plugins/BugzillaLinkPlugin.pm
-
data/TWiki/BugzillaLinkPlugin.txt
-
pub/TWiki/BugzillaLinkPlugin/bug.gif
-
pub/TWiki/BugzillaLinkPlugin/bug_small.gif
-
pub/TWiki/BugzillaLinkPlugin/bug_small.png
-
pub/TWiki/BugzillaLinkPlugin/bug_small_white.png
Plugin Info
History
- 1.0: BUG function
- 1.1: Added BUGLIST function, renamed to BugzillaLinkPlugin
- 1.2: Added MYBUGS function (Thanks to Steve Kostecke), dealing with whitespace (Thanks to Alan Shields)
- 1.3: Added target function and changed to latest plugin syntax (by TWiki:Main.SaschaVetter )
Contributors
Related Topics: TWikiPreferences,
TWikiPlugins
--
TWiki:Main.SaschaVetter - 26 Aug 2008
Plugins.BugzillaLinkPlugin moved from Plugins.BugzillaPlugin on 16 Aug 2002 - 04:26 by PeterThoeny -
put it back