Extension:BugzillaView

The BugzillaView extension will display BugZilla bugs directly inside your pages.

Configure interwiki link
Setup an interwiki link for your BugZilla installation:

IMPORTANT: Don't use  as prefix, because it's a reserved interwiki prefix for MediaWiki.

Grant access to BugZilla
Because the BugzillaView extension needs access to the BugZilla's  database table, you have to configure the credentials later in. There are 3 ways to get access to BugZilla's database:


 * If the MediaWiki and BugZilla database are on the same host, you might give the MediaWiki user read-access to the BugZilla database (RECOMMENDED)
 * e.g. MySQL command
 * where  matches   in LocalSettings.php
 * Create a new user just for BugzillaView
 * e.g. MySQL command
 * Use the existing BugZilla database credentials

Configuration parameters
Here are the defaults, you might overwrite them in your LocalSettings.php file:

$wgBugzillaView['interwiki'] = 'bugzilla';    // name of the interwiki link $wgBugzillaView['displayDescription'] = TRUE; // should bug descriptions be displayed $wgBugzillaView['dbDriver'] = $wgDBtype;      // database driver for PDO $wgBugzillaView['dbHost'] = $wgDBserver;      // database hostname or IP address $wgBugzillaView['dbName'] = 'bugzilla';       // database name $wgBugzillaView['dbUsername'] = $wgDBuser;    // database username $wgBugzillaView['dbPassword'] = $wgDBpassword; // database password $wgBugzillaView['dbTablePrefix'] = "";        // database prefix

You see, if your Bugzilla installation meets the following requirements, you don't have to configure anything and it should work out of the box:
 * The BugZilla database is installed on the same host as the MediaWiki database
 * The BugZilla database is called
 * The BugZilla database / tables don't uses prefixes
 * The MediaWiki DB user has read-access to BugZillas  table

Usage
To display a BugZilla bug inside your wiki site, just use the interwiki link.

Assume we use  as interwiki prefix, then we use the following syntax:

Format / Style
By default the bugs will be styled by the following rules: You might wanna change the style / format of the bugs and how they are displayed. Just edit the  file in the BugzillaView extension directory.
 * Format: BUG-ID: "DESCRIPTION" STATUS RESOLUTION
 * Unconfirmed, new and reopened bugs will be displayed in red
 * Assigned bugs will be displayed in green
 * Resolved, verified and closed bugs will be displayed in grey
 * Bugs with resolution fixed or worksforme will have a green resolution
 * Bugs with resolution invalid, wontfix, duplicate will have a red resolution
 * Bugs with resolution moved will have a orange resolution