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

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
janokary
Posts: 6
Joined: 17 Jul 2008, 10:53

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

Post 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.
vzw614
Posts: 143
Joined: 15 May 2008, 14:59

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

Post 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.
janokary
Posts: 6
Joined: 17 Jul 2008, 10:53

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

Post 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);
vzw614
Posts: 143
Joined: 15 May 2008, 14:59

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

Post 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);
janokary
Posts: 6
Joined: 17 Jul 2008, 10:53

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

Post 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 ?
rajeshkanattu
Posts: 8
Joined: 19 Jan 2012, 11:41

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

Post 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.
Rajesh Kanattu
Mantis 1.2.8 /WAMP
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

Use "Manage" -> "Manage Configuration" -> "E-mail Notifications"
Enable all access levels in row "Status changes to 'new'"
Please use Search before posting and read the Manual
rajeshkanattu
Posts: 8
Joined: 19 Jan 2012, 11:41

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

Post 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
Rajesh Kanattu
Mantis 1.2.8 /WAMP
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

Check that none of the users disabled emails at "My account" -> "Preferences"
Please use Search before posting and read the Manual
rajeshkanattu
Posts: 8
Joined: 19 Jan 2012, 11:41

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

Post 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.
Rajesh Kanattu
Mantis 1.2.8 /WAMP
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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';
Please use Search before posting and read the Manual
rajeshkanattu
Posts: 8
Joined: 19 Jan 2012, 11:41

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

Post 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?
Rajesh Kanattu
Mantis 1.2.8 /WAMP
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

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

Post 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)
rajeshkanattu
Posts: 8
Joined: 19 Jan 2012, 11:41

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

Post 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
Rajesh Kanattu
Mantis 1.2.8 /WAMP
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

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

Post 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 :)
Post Reply