Forcing a fixed-in version with the Mantis bug tracker

At the office, we use Mantis, 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:

  1. Is the issue getting marked as “resolved?”
  2. Is the issue getting marked as “fixed?”
  3. Does the issue belong to a project for which one or more versions are defined?
  4. If all of the above is “yes,” then fail unless something has been entered for a fixed-in version number.

More information, including requirements, installation instructions, and the download link are available at the project page: https://netninja.com/projects/forcefixedin/

Posted in: Code

Published by

Brian Enigma

Brian Enigma is a Portlander, manipulator of atoms & bits, minor-league blogger, and all-around great guy. He typically writes about the interesting “maker” projects he's working on, but sometimes veers off into puzzles, software, games, local news, and current events.

Leave a Reply

Your email address will not be published. Required fields are marked *