Auto-monitor on bug note

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
epenet
Posts: 13
Joined: 09 Feb 2017, 11:19

Auto-monitor on bug note

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

Re: Auto-monitor on bug note

Post by atrol »

I recommend to use page Manage > Manage Configuration > E-mail Notifications
Please use Search before posting and read the Manual
epenet
Posts: 13
Joined: 09 Feb 2017, 11:19

Re: Auto-monitor on bug note

Post 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...
epenet
Posts: 13
Joined: 09 Feb 2017, 11:19

Re: Auto-monitor on bug note

Post 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?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Auto-monitor on bug note

Post 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';
Please use Search before posting and read the Manual
pdx
Posts: 1
Joined: 13 Jan 2020, 15:33

Re: Auto-monitor on bug note

Post 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?
violab
Posts: 3
Joined: 28 Nov 2017, 18:31

Re: Auto-monitor on bug note

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