Email when Moved

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Nycto
Posts: 9
Joined: 17 Oct 2007, 16:19
Location: Bellevue, WA

Email when Moved

Post 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
- Nycto
dgr
Posts: 1
Joined: 20 Jun 2008, 08:28

Re: Email when Moved

Post by dgr »

Hi,

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

Thanks
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: Email when Moved

Post 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.
Migrate your MantisBT to the MantisHub Cloud
Post Reply