MantisBT: ForceFixedIn
ForceFixedIn
Copyright 2010, Brian Enigma <brian@netninja.com>, http://netninja.com
Licensed under the GNU General Public License.
Theory
At the office, we use Mantis, which is a powerful PHP-based bug tracking system. It offers some great control over process and workflow, but not quite the granularity that I need. Specifically, I work in an environment where it is vital that the “fixed-in” version is filled in when resolving an issue as “fixed.” Without this, there is no easy way to generate an accurate changelog. Although we all do our best to fill this field in, there are slipups. To better catch these slipups when they occur, I have written the ForceFixedIn plugin. The plugin itself is relatively simple and follows this pseudocode:
- Is the issue getting marked as “resolved?”
- Is the issue getting marked as “fixed?”
- Does the issue belong to a project for which one or more versions are defined?
- If all of the above is “yes,” then fail unless something has been entered for a fixed-in version number.
Requirements
Mantis 1.2.0 or greater is required.
Installation
Installation is simple and involves creating a plugin folder and copying the plugin’s PHP file into the folder. You then activate it from within Mantis.
- Create a folder under your mantis plugins folder named ForceFixedIn. For instance, if you have Mantis installed at /var/www/mantisbt, then you would create /var/www/mantisbt/plugins/ForceFixedIn.
- Copy ForceFixedIn.php into this folder.
- Log in to Mantis as an administrator.
- Go to Manage -> Manage Plugins and click “Install” next to ForceFixedIn.

{ 1 trackback }