Page 1 of 1

Send a notification, to all project users, on new issue

Posted: 18 Jul 2008, 08:46
by janokary
When reporting an issue, is it possible to automaticaly send a notification to all users that are added to the respective project?

I can now do this by
"Send a reminder" after posting the issue
to all project members

but it is two more clicks, and someone might forget to do it.

Re: Send a notification, to all project users, on new issue

Posted: 18 Jul 2008, 13:45
by vzw614
Add the following lines to your config_inc.php file (if you don't have it copy/rename config_inc.php.sample)

$g_notify_flags['new']['threshold_min'] = ANYBODY;
$g_notify_flags['new']['threshold_max'] = ADMINISTRATOR;

You can also look at the section of config_defaults_inc.php where that setting is found to read more about email notifications.

Re: Send a notification, to all project users, on new issue

Posted: 22 Jul 2008, 11:08
by janokary
I read the section about section config_defaults_inc but I can't get it write.
Let me refrase
Is it possible for all users that are added to a project (lets say as developers) to automatically monitor an issue when this is reported ?

this is what I have done this far
$g_default_notify_flags = array('reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'threshold_min' => DEVELOPER,
'threshold_max' => ADMINISTRATOR);
$g_notify_flags['new'] = array('threshold_min' => DEVELOPER,
'threshold_min' => ADMINISTRATOR);

Re: Send a notification, to all project users, on new issue

Posted: 22 Jul 2008, 14:37
by vzw614
You have a typo in your last line...you have threshold_min listed twice.


$g_notify_flags['new'] = array('threshold_min' => DEVELOPER,
'threshold_max' => ADMINISTRATOR);

Re: Send a notification, to all project users, on new issue

Posted: 23 Jul 2008, 07:53
by janokary
Oh my. I must be getting old.
I correct the typo but the problem still remains.
this is my configuration now:

Code: Select all

	$g_default_notify_flags	= array('reporter'	=> ON,
									'handler'	=> ON,
									'monitor'	=> ON,
									'bugnotes'	=> ON,
									'threshold_min'	=> DEVELOPER,
									'threshold_max' => ADMINISTRATOR);
	$g_notify_flags['new']	= array('threshold_min'	=> DEVELOPER,
									'threshold_max'	=> ADMINISTRATOR);
I even open debug mode

Code: Select all

	$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT ;
	$g_log_destination = 'file:/tmp/mantis.log';
and when I submit an issue I get this
2008-07-23 10:43 EEST mail_recipient bug=5, add reporter=5
2008-07-23 10:43 EEST mail bug=5, type=new, msg=email_notification_title_for_action_bug_submitted, recipients=(janokary at gmail.com)
I must say that I use mantis 1.1.2
There are two more users added as managers in this project.

Is there any chance to have a bug here?
Something similar to http://www.mantisbt.org/bugs/view.php?id=9309 ?

Re: Send a notification, to all project users, on new issue

Posted: 22 Jan 2012, 04:02
by rajeshkanattu
Have you got it working?When reporting an issue, is it possible to automaticaly send a notification to all users that are added to the respective project? Currently I am getting a notification to the reporter, assigned developer and manager. I would like to send the notifications to all users who are added in the project..I use the latest version 1.2.6/MySQL implementation.

Re: Send a notification, to all project users, on new issue

Posted: 22 Jan 2012, 09:49
by atrol
Use "Manage" -> "Manage Configuration" -> "E-mail Notifications"
Enable all access levels in row "Status changes to 'new'"

Re: Send a notification, to all project users, on new issue

Posted: 22 Jan 2012, 14:50
by rajeshkanattu
Thank you atrol!

Yes, I have already enabled all the access level for new.

I do have 2 reporter, 1 manager, 1 developer for a projects. All this users are assigned to a project. I am thinking that all users will get email notification about the new issues, but only the report of the issue, developer and manager gets email. One of the reporter who is a part of the project didn't get mail.

My understanding is that all users who are assigned in the project should get the email for the selected events(Manage Conf,Email Notifications). Is it correct, if so how to make it working?

Thanks for any directions...
/Rajesh

Re: Send a notification, to all project users, on new issue

Posted: 22 Jan 2012, 15:06
by atrol
Check that none of the users disabled emails at "My account" -> "Preferences"

Re: Send a notification, to all project users, on new issue

Posted: 22 Jan 2012, 16:20
by rajeshkanattu
I checked this, all users in the projects has preference set to receive email on New issues? Do we have any log files settings so that we can trouble shoot?

Thanks for the quick reply.

Re: Send a notification, to all project users, on new issue

Posted: 22 Jan 2012, 17:32
by atrol
Add the following lines to config_inc.php to trace how MantisBT collects and removes the recipients

Code: Select all

$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:C:\mantisbt.log';

Re: Send a notification, to all project users, on new issue

Posted: 25 Jan 2012, 13:01
by rajeshkanattu
Dear All,

I still get this working :(...

Let me again reiterate what I am looking..

When reporting an issue, I would like to automaticaly send a notification to all users that are added to the respective project? Presently notification is going to the repoter(who reported the issue),developer ( based on category i have assigned automatically),manager of the project. But I have one more member in the project who is a reporter, he doesn't get the notification :(. Does mantis is capable of doing this?

I have modified the default flags in config_inc.php as follows..

$g_default_notify_flags = array('reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'explicit' => ON,
'threshold_min' => ANYBODY,
'threshold_max' => ADMINISTRATOR);

$g_notify_flags['new']['threshold_min'] = ANYBODY;
$g_notify_flags['new']['threshold_max'] = ADMINISTRATOR;

It doesn't work..I couldn't get any clue from the email log as well,,

Can somebody from the Forum help?

Re: Send a notification, to all project users, on new issue

Posted: 25 Jan 2012, 15:12
by istvanb
Yeap, just check the reporter checkboxes on the email notification page. That will flood all of your reporters though.

What you can do is to use the updater credential on a project basis. With this you can notify all the updater users and the system will not spam each and every reporter.

(instead of updater you can create a new credential as well)

Re: Send a notification, to all project users, on new issue

Posted: 25 Jan 2012, 17:55
by rajeshkanattu
Thank you, that did work!

Just a followup question, does the email goes all the updater or updaters who is member of the project from where issues are open? Basically I will like to have project based notification.

/Rajesh

Re: Send a notification, to all project users, on new issue

Posted: 25 Jan 2012, 18:04
by istvanb
I am 99.9% sure that it works as you wish. So only users who have updater credentials on that specific project will receive emails.

the 0.1% is measurement uncertainty :)