MantisBT: ForceFixedIn

Force­FixedIn

Ver­sion 1.0
Copy­right 2010, Brian Enigma <brian@netninja.com>, http://netninja.com
Licensed under the GNU Gen­eral Pub­lic License.

The­ory

At the office, we use Man­tis, which is a pow­er­ful PHP-based bug track­ing sys­tem.  It offers some great con­trol over process and work­flow, but not quite the gran­u­lar­ity that I need.  Specif­i­cally, I work in an envi­ron­ment where it is vital that the “fixed-in” version is filled in when resolv­ing an issue as “fixed.”  With­out this, there is no easy way to gen­er­ate an accu­rate changelog.  Although we all do our best to fill this field in, there are slipups.  To bet­ter catch these slipups when they occur, I have writ­ten the Force­FixedIn plu­gin.  The plu­gin itself is rel­a­tively sim­ple and fol­lows this pseudocode:

  1. Is the issue get­ting marked as “resolved?”
  2. Is the issue get­ting marked as “fixed?”
  3. Does the issue belong to a project for which one or more ver­sions are defined?
  4. If all of the above is “yes,” then fail unless some­thing has been entered for a fixed-in ver­sion number.

Require­ments

Man­tis 1.2.0 or greater is required.

Instal­la­tion

Instal­la­tion is sim­ple and involves cre­at­ing a plu­gin folder and copy­ing the plugin’s PHP file into the folder.  You then acti­vate it from within Mantis.

  1. Cre­ate a folder under your man­tis plu­g­ins folder named Force­FixedIn.  For instance, if you have Man­tis installed at /var/www/mantisbt, then you would cre­ate /var/www/mantisbt/plugins/ForceFixedIn.
  2. Copy ForceFixedIn.php into this folder.
  3. Log in to Man­tis as an administrator.
  4. Go to Man­age -> Man­age Plu­g­ins and click “Install” next to ForceFixedIn.

Downloading/Version His­tory

ForceFixedIn-1.0.tgz

Share and Enjoy:
  • Digg
  • Reddit
  • del.icio.us
  • StumbleUpon
  • Yahoo! Buzz
  • Facebook
  • Google Bookmarks
  • Technorati

Leave a Comment

{ 1 trackback }