Page 1 of 1

Email when Moved

Posted: 17 Oct 2007, 20:37
by Nycto
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:

Code: Select all

patch -p0 < emailWhenMoved.diff
You will also need to run the following SQL query:

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`
Cheers

Re: Email when Moved

Posted: 20 Jun 2008, 08:30
by dgr
Hi,

I can't find anymore your code at http://www.mediafire.com/?81xa9eogmx2 ?
Could you repost it?

Thanks

Re: Email when Moved

Posted: 19 Jul 2008, 23:31
by vboctor
This seems to be http://www.mantisbt.org/bugs/view.php?id=8483

Please attach your patch to the bug so that we can incorporate it into Mantis.