Page 1 of 1

Auto-monitor on bug note

Posted: 08 Mar 2017, 12:59
by epenet
Hi,

I am still having difficulty getting the emails sent at the right time.

This is what I am trying to achieve:
  1. When new issues are created, I want an email to all DEVELOPPER and above (MANAGER, ADMINISTRATOR)
  2. When an issue is changed, regardless of change, I want an email to the reporter + all the DEVELOPPER and above (like 1) + all the people monitoring the bug
  3. When someone interacts with a bug (add bugnote, change status, etc.), automatically add to the monitor list so they are included in (2)
This is my current configuration:

Code: Select all

$g_default_notify_flags['threshold_min'] = DEVELOPER;
$g_default_notify_flags['threshold_max'] = NOBODY;
$g_email_receive_own = ON;
It seems that administrators are correctly included in (1) but not in (2).
I cannot find how to implement (3)

Any help would be greatly appreciated.

Cheers,
Erwann

Re: Auto-monitor on bug note

Posted: 08 Mar 2017, 13:58
by atrol
I recommend to use page Manage > Manage Configuration > E-mail Notifications

Re: Auto-monitor on bug note

Posted: 28 Mar 2017, 07:27
by epenet
I've just upgraded from v2.1.0 to v2.2.1.

I've re-read the following documentation:
- https://www.mantisbt.org/docs/master/en ... email.html
- https://www.mantisbt.org/docs/master/en ... email.html
- https://www.mantisbt.org/docs/master/en ... email.html

I've now amended the config file to be just

Code: Select all

$g_notify_flags['new']['threshold_min'] = DEVELOPER;
Let's see how this goes...

Re: Auto-monitor on bug note

Posted: 29 Mar 2017, 07:25
by epenet
Hi,

I'm still missing notifications.
1. I am administrator of the platform
2. I am the reporter of the issue
3. I have added notes to the issue

A colleague has added a note, and I didn't receive the notification.

Is there an audit trail of "sent emails" which I could use for debugging?

Re: Auto-monitor on bug note

Posted: 29 Mar 2017, 08:26
by atrol
You can enable email logging
http://www.mantisbt.org/docs/master/en- ... ig.logging
Add the following lines to file config_inc.php and adjust to your needs

Code: Select all

$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/var/log/mantis.log';

Re: Auto-monitor on bug note

Posted: 13 Jan 2020, 15:42
by pdx
I want to set the system so that any time someone touches a ticket (adds a note, changes the description, etc) they are added to the monitor list.
This way they can easily find tickets that they have worked on or edited in any way.

Did you create a plug-in or code for this?

Re: Auto-monitor on bug note

Posted: 01 Feb 2020, 17:25
by violab
Hi all.
I also have some questions on the topic
How to automatically monitor by e-mail an issue without the reporter having to click every new issue in monitor button?
How do you make to monitor issues by e-mail to a users group that belonging to the same project?

Thanks in advance