I am struggling to find out why Mantis is not emailing me when tickets are being updated by the people I have assigned the bug too. Any ideas?
Also how can I have whole teams emailed each time a ticket is created and updated?
Thanks for your help.
Mantis not emailing me
Moderators: Developer, Contributor
Re: Mantis not emailing me
By default emails are not sent when an issue is first created. You can change that by setting $notify_flags (but I'm still working on figuring out emails myself). Check out this post for a link to the updated manual. So far it's been more helpful than the online version.
http://www.mantisbt.org/forums/viewtopic.php?f=2&t=4669
Mantis is very flexible but along with that flexibility comes some complexity at getting it configured properly.
One suggestion I would make is to make a backup copy of your config files (config_defaults_inc.php and config_inc.php) so that if you mess something up you can easily go back to the installed defaults. You should make any configuration changes in config_inc.php because config_defaults_inc.php will get over-written when (if) you upgrade to a different version of Mantis. If you don't have a config_inc.php just copy and rename config_inc.php.sample.
Also, only make 1 change at a time then test it to make sure it does what you expect. Making several changes at the same time makes it harder to figure out why something isn't behaving like you want.
You can also set $g_debug_email = 'you@example.com' in your config file and it will send a copy of each email to that email address with an extra line at the top listing which email addresses that email was sent to.
Good luck,
Curtis
http://www.mantisbt.org/forums/viewtopic.php?f=2&t=4669
Mantis is very flexible but along with that flexibility comes some complexity at getting it configured properly.
One suggestion I would make is to make a backup copy of your config files (config_defaults_inc.php and config_inc.php) so that if you mess something up you can easily go back to the installed defaults. You should make any configuration changes in config_inc.php because config_defaults_inc.php will get over-written when (if) you upgrade to a different version of Mantis. If you don't have a config_inc.php just copy and rename config_inc.php.sample.
Also, only make 1 change at a time then test it to make sure it does what you expect. Making several changes at the same time makes it harder to figure out why something isn't behaving like you want.
You can also set $g_debug_email = 'you@example.com' in your config file and it will send a copy of each email to that email address with an extra line at the top listing which email addresses that email was sent to.
Good luck,
Curtis
-
- Posts: 10
- Joined: 27 Jun 2008, 03:31
Re: Mantis not emailing me
Thanks for the reply and link.
How about when issues are updated. If the issue is public shouldnt the all the members get emailed when it is updated?
How about when issues are updated. If the issue is public shouldnt the all the members get emailed when it is updated?
-
- Posts: 10
- Joined: 27 Jun 2008, 03:31
Re: Mantis not emailing me
OK people can someone tell me how I can make sure "management" gets emailed every time us little workers update and create tickets? The management users probably never interact with tickets directly, but they want to get notified though email when tickets are updated are closed. Any ideas? Right now only the people that create the ticket, are assigned to the ticket and make updates to the ticket are getting emailed when updates and closures take place.
Re: Mantis not emailing me
I'll give this a shot...again, no guarentees it will work because we're still working on figuring it out ourselves.
There are lots of "updates" that can be done to an issue. Do you want emails to be sent out for absolutely all updates or just certain ones?
Assuming you have all of your "management" users set to "Manager" in Mantis add these lines to config_inc.php (do not make your changes in config_defaults_inc.php because it gets over-written when you upgrade Mantis - if you don't have config_inc.php copy/rename config_inc.php.sample)
Replace <actionORstatus> with any of these actions...
'new': a new bug has been added
'owner': a bug has been assigned to a new owner
'reopened': a bug has been reopened
'deleted': a bug has been deleted
'updated': a bug has been updated
'bugnote': a bugnote has been added to a bug
'sponsor': sponsorship has changed on this bug
'relation': a relationship has changed on this bug
Or these statuses...
'new', 'feedback', 'acknowledged', 'confirmed', 'assigned', 'resolved', 'closed'
You can add as many lines as you need to cover all of the bases. You can also change the thresholds to any value in $g_access_levels_enum_string.
For example..
$g_notify_flags['new']['threshold_min'] = REPORTER;
$g_notify_flags['new']['threshold_max'] = MANAGER;
Would send an email to users defined as REPORTER, UPDATER, DEVELOPER and MANAGER whenever a new issue is submitted.
Take an hour and read through config_defaults_inc.php. It it pretty well documented. You can also find an updated version of the manual at http://www.scribd.com/full/2088848?acce ... jvshqlc2hw
To verify that emails are being sent to who you think they should check out the debugging section of config_defaults_inc.php for $g_log_level and $g_log_destination.
There are lots of "updates" that can be done to an issue. Do you want emails to be sent out for absolutely all updates or just certain ones?
Assuming you have all of your "management" users set to "Manager" in Mantis add these lines to config_inc.php (do not make your changes in config_defaults_inc.php because it gets over-written when you upgrade Mantis - if you don't have config_inc.php copy/rename config_inc.php.sample)
Code: Select all
$g_default_notify_flags = array('reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'threshold_min' => ANYBODY,
'threshold_max' => NOBODY);
$g_notify_flags['<actionORstatus>']['threshold_min'] = DEVELOPER;
$g_notify_flags['<actionORstatus>']['threshold_max'] = MANAGER;
'new': a new bug has been added
'owner': a bug has been assigned to a new owner
'reopened': a bug has been reopened
'deleted': a bug has been deleted
'updated': a bug has been updated
'bugnote': a bugnote has been added to a bug
'sponsor': sponsorship has changed on this bug
'relation': a relationship has changed on this bug
Or these statuses...
'new', 'feedback', 'acknowledged', 'confirmed', 'assigned', 'resolved', 'closed'
You can add as many lines as you need to cover all of the bases. You can also change the thresholds to any value in $g_access_levels_enum_string.
For example..
$g_notify_flags['new']['threshold_min'] = REPORTER;
$g_notify_flags['new']['threshold_max'] = MANAGER;
Would send an email to users defined as REPORTER, UPDATER, DEVELOPER and MANAGER whenever a new issue is submitted.
Take an hour and read through config_defaults_inc.php. It it pretty well documented. You can also find an updated version of the manual at http://www.scribd.com/full/2088848?acce ... jvshqlc2hw
To verify that emails are being sent to who you think they should check out the debugging section of config_defaults_inc.php for $g_log_level and $g_log_destination.
-
- Posts: 10
- Joined: 27 Jun 2008, 03:31
Re: Mantis not emailing me
Thanks for all your help. I think it is working now.