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

Get help from other users here.

Moderators: Contributor, Developer

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

Postby janokary » Jul 18, 2008 3:46 am

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

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

Postby vzw614 » Jul 18, 2008 8:45 am

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

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

Postby janokary » Jul 22, 2008 6:08 am

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

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

Postby vzw614 » Jul 22, 2008 9:37 am

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

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

Postby janokary » Jul 23, 2008 2:53 am

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 ?
janokary
 
Posts: 6
Joined: Jul 17, 2008 5:53 am

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

Postby rajeshkanattu » Jan 21, 2012 11:02 pm

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
rajeshkanattu
 
Posts: 8
Joined: Jan 19, 2012 6:41 am

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

Postby atrol » Jan 22, 2012 4:49 am

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
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 4749
Joined: Mar 26, 2008 4:37 pm
Location: Germany

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

Postby rajeshkanattu » Jan 22, 2012 9:50 am

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
rajeshkanattu
 
Posts: 8
Joined: Jan 19, 2012 6:41 am

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

Postby atrol » Jan 22, 2012 10:06 am

Check that none of the users disabled emails at "My account" -> "Preferences"
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 4749
Joined: Mar 26, 2008 4:37 pm
Location: Germany

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

Postby rajeshkanattu » Jan 22, 2012 11:20 am

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
rajeshkanattu
 
Posts: 8
Joined: Jan 19, 2012 6:41 am

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

Postby atrol » Jan 22, 2012 12:32 pm

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
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 4749
Joined: Mar 26, 2008 4:37 pm
Location: Germany

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

Postby rajeshkanattu » Jan 25, 2012 8:01 am

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
rajeshkanattu
 
Posts: 8
Joined: Jan 19, 2012 6:41 am

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

Postby istvanb » Jan 25, 2012 10:12 am

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)
istvanb
 
Posts: 226
Joined: Aug 22, 2010 4:00 pm

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

Postby rajeshkanattu » Jan 25, 2012 12:55 pm

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
rajeshkanattu
 
Posts: 8
Joined: Jan 19, 2012 6:41 am

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

Postby istvanb » Jan 25, 2012 1:04 pm

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 :)
istvanb
 
Posts: 226
Joined: Aug 22, 2010 4:00 pm


Return to Help

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests