BugzillaLinkPlugin

This plugin provides shorthand for linking to Bugzilla bugs without specifying a URL in longhand. It is most useful if you are using a local copy of Bugzilla for issue/ticket/bug tracking, and want to reference it from your topic.

Features

  • Short hand references for:
  • Individual bugs
  • Lists of bugs assigned to a given milestone (or its beta)
  • Lists of bugs matching one or more keywords
  • Lists of the specified user's assigned bugs
  • URLs and text prompts are fully configurable

Syntax Rules

The following %BUG*{...}% short hand references are supported:
Short hand reference What it does
%BUG{#####}% Creates a link to a specific bug.
%BUGLISTMS{target_milestone}% Creates a link to a list of bugs with the specified target_milestone.
%BUGLISTKEY{keyword1+...+keywordn}%

%BUGLISTKEY{keyword1,...,keywordn}
Creates a link to a list of bugs with one or more of the specified keywords.

Using comma separators will generate an OR-type search.
%MYBUGS{user@some.domain}% Creates a link to a list of bugs assigned to user@some.domain.

Examples

You type: You get: (simulated) You get: (if installed)
%BUG{242971}% bug_small.png Bug #242971 %BUG{242971}%
%BUGLISTMS{Firefox1.0}% bug_small.png Buglist for milestone Firefox1.0 %BUGLISTMS{Firefox1.0}%
%BUGLISTKEY{highrisk,64bit}% bug_small.png Buglist for keyword(s) "highrisk,64bit" %BUGLISTKEY{highrisk,64bit}%
%BUGLISTKEY{crash+fonts}% bug_small.png Buglist for keyword(s) "crash+fonts" %BUGLISTKEY{crash+fonts}%
%MYBUGS{shaver@mozilla.org}% bug_small.png Buglist for shaver@mozilla.org %MYBUGS{shaver@mozilla.org}%

BugzillaLinkPlugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %RENDERPLUGIN_SHORTDESCRIPTION%

  • One line description, is shown in the Text Formatting Rules topic:
  • Set SHORTDESCRIPTION = Link to Bugzilla bugs using shorthand references

  • Set DEBUG to 1 to get debug messages in data/debug.txt. Default: 0
  • Set DEBUG = 0

  • Text references for automatic substitution
  • Set BUGTEXT = Bug #
  • Set MILESTONEBUGLISTTEXT = Buglist for milestone
  • Set KEYWORDSBUGLISTTEXT = Buglist for keyword(s)
  • Set MYBUGLISTTEXT = Buglist for user

Limitations and Known Issues

  • Many other sorts of linking is possible, but not yet implemented.
  • This plugin could be refactored to work with many other sorts of bug tracking software, not limited to but including:
  • RT
  • Mantis
  • DDTS (see Autolink DDTSPlugin?)

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip BugzillaLinkPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/BugzillaLinkPlugin.txt Plugin topic
    data/TWiki/BugzillaLinkPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/BugzillaLinkPlugin.pm Plugin Perl module
    pub/TWiki/BugzillaLinkPlugin/*.gif Image files for themes
    pub/TWiki/BugzillaLinkPlugin/*.png Image files for themes
  • (Dakar) Visit configure in your TWiki installation, and enable the plugin in the {Plugins} section.
  • Test if the installation was successful:
  • See if the above example works

Plugin Info

Plugin Author: TWiki:Main.FlorianGnaegi
Plugin Version: 03 Oct 2005 (V1.300)
Change History:  
03 Oct 2005 Fixes for Dakar, added BUGLISTKEY function, refactored Settings (TWiki:Main.JoanTouzet)
08 Jul 2003 Added MYBUGS function (TWiki:Main.SteveKostecke), dealing with whitespace (TWiki:Main.AlanShields)
19 Aug 2002 Added BUGLIST function, renamed to Bugzilla Link Plugin (TWiki:Main.AnthonPang ?)
15 Aug 2002 Initial version
CPAN Dependencies: none
Other Dependencies: A working Bugzilla installation
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/BugzillaLinkPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/BugzillaLinkPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/BugzillaLinkPluginAppraisal

Related Topics: TWiki Preferences, TWiki Plugins

-- TWiki:Main.JoanTouzet - 03 October 2005
Topic attachments
I Attachment Action Size Date Who Comment
bug.gifgif bug.gif manage 0.2 K 15 Aug 2002 - 10:59 Unknown User GIF Bug large
bug_small.gifgif bug_small.gif manage 0.9 K 15 Aug 2002 - 13:06 Unknown User GIF Bug small
bug_small.pngpng bug_small.png manage 0.2 K 15 Aug 2002 - 10:59 Unknown User PNG Bug transparent
bug_small_white.pngpng bug_small_white.png manage 0.2 K 15 Aug 2002 - 10:59 Unknown User PNG Bug, white background
Topic revision: r1 - 03 Oct 2005 - 21:17:13 - joant
 
Ad Sponsor
Back to Redbourn
Copyright © We make no guarantee of the correctness of the content of this site. All material on this collaboration platform is the property of Martin Cleaver and the contributing authors.