Email when Moved
Posted: 17 Oct 2007, 20:37
I am implementing Mantis for my company right now, and I thought I would share a snippet we needed.
Basically, I added a flag to email people when a bug is moved.
If you're curious about the practical application, here is why:
To make sure bugs go through the right people, we had to tighten down the work flow. The way things are setup, it is the responsibility of a project specific Manager to assign a bug to a developer on creation. If the bug is put in the wrong project by the reporter, the Manager must move to the appropriate place. To make sure the bug didn't get lost at this point, I extended the email notification code to add an "Email when Moved" option so the new Manager would be notified of the new bug.
I uploaded the CVS diff file here:
http://www.mediafire.com/?81xa9eogmx2
This diff was made versus the newest version of Mantis in the public repository (1.2.0-CVS). If you are not familiary with diff files, all you need to do is drop emailWhenMoved.diff into your mantis directory. From that same directory, run the following command:
You will also need to run the following SQL query:
Cheers
Basically, I added a flag to email people when a bug is moved.
If you're curious about the practical application, here is why:
To make sure bugs go through the right people, we had to tighten down the work flow. The way things are setup, it is the responsibility of a project specific Manager to assign a bug to a developer on creation. If the bug is put in the wrong project by the reporter, the Manager must move to the appropriate place. To make sure the bug didn't get lost at this point, I extended the email notification code to add an "Email when Moved" option so the new Manager would be notified of the new bug.
I uploaded the CVS diff file here:
http://www.mediafire.com/?81xa9eogmx2
This diff was made versus the newest version of Mantis in the public repository (1.2.0-CVS). If you are not familiary with diff files, all you need to do is drop emailWhenMoved.diff into your mantis directory. From that same directory, run the following command:
Code: Select all
patch -p0 < emailWhenMoved.diff
Code: Select all
ALTER TABLE `mantis_user_pref_table`
ADD `email_on_moved` TINYINT( 4 ) NOT NULL DEFAULT '0' AFTER `email_on_priority` ,
ADD `email_on_moved_min_severity` SMALLINT( 6 ) NOT NULL DEFAULT '10' AFTER `email_on_moved`