View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006128 | mantisbt | bugtracker | public | 2005-08-11 12:04 | 2019-08-25 12:36 |
Reporter | MattB | Assigned To | dregad | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.0.0a3 | ||||
Target Version | 2.22.0 | Fixed in Version | 2.22.0 | ||
Summary | 0006128: Ability to add monitors to a bug when the bug is first reported | ||||
Description | I've got a simple patch so that the reporter can add users as monitors during the initial bug report. This is really useful in our environment and would be nice to see it in a Mantis release at some point. | ||||
Additional Information | Three changes are needed. Add to bug_report_advanced_page.php, line 300:
Add to bug_report.php above the email_new_bug statement:
Make a configuration change:
(this can also be done per-project using the config screens if necessary) | ||||
Tags | No tags attached. | ||||
has duplicate | 0022559 | closed | atrol | Add monitoring users at report time |
related to | 0016811 | new | Plugin to notify multiple users on Issue create | |
related to | 0025815 | closed | dregad | Users can't add monitors if access < show_monitor_list_threshold and >= monitor_add_others_bug_threshold |
related to | 0025827 | closed | dregad | Improve documentation for monitors-related configs |
BTW, this should probably be a configurable item nbut I haven't had chance to sort the code for that yet!! |
|
Oops, forgot to close the comment in the first block, it should be: <!-- Monitors of this bug --> |
|
This seems like it would be a nice feature to add to Mantis. Thanks very much for contributing the code; I've merged it into the local installation at my company. |
|
We use this functionality all the time in our company. I would love to see it in the main Mantis codebase. |
|
I noticed that an "invalid argument in foreach" was appearing when reporting issues with the above code in bug_report.php. The error went away when I encompassed the foreach loop with <pre> if ( count( $t_monitors) > 0 ) { ... } |
|
With the above code in place, I don't believe email is being sent to monitors upon a New issue being reported. I haven't debugged Mantis operation, but I've checked maillogs sufficient to believe the observations I've heard. What is necessary to change in order to let monitors be informed of a new issue? I've gone into Email Notifications as administrator and checked the appropriate box there, but I fear that perhaps some other option (in config_inc.php) might still be preventing email. Thanks in advance for any suggestions. |
|
mlovell: I think that if you move the suggested changes ABOVE email_new_bug() instead of below it, you the monitors will be notified on new bugs. I haven't tried it but it should work. |
|
I'm glad to see others request this. Definitely a useful thing when you want to CC a group. |
|
sawsedge +1 |
|
I implemented MattB's code in my Mantis install and it works well, except it is missing the "monitored by" list for the bug update page. I have not personally figured out how to add this. If I do, I'll post it, but it someone figures it out first, great. |
|
i think it will be very usefull to make possibility to assign category to a list of users or add setting for category different from "asigned" such as "initial CC" that will be a list users |
|
Thank you for the report and suggested fix. Would you consider submitting pull requests for this functionality? This would greatly increase the speed of including these changes in MantisBT. Ideally you would submit pull requests for both the master and master-1.2.x branches at https://github.com/mantisbt/mantisbt . |
|
Is there some adapted code for Mantis 1.2.x in git or somewhere else? |
|
Hi @MattB Can you please provide the patch for mantis 2.4.0. |
|
@MattB would it be possible to get the patch for Mantis 2.x? |
|
I adapted @MattB's original patch to latest Master, adding some missing security bits to make sure the functionality respects the monitoring issues configuration (i.e. reporter needs to be allowed to add other users to the monitoring list as set with Please see PR https://github.com/mantisbt/mantisbt/pull/1513. I only performed minimal testing, so your feedback (either here or directly on the PR) would be appreciated. |
|
MantisBT: master 179ef093 2019-05-19 09:23 Details Diff |
Allow adding monitors when reporting an issue By adding `monitors` to the $g_bug_report_page_fields array, users having $g_monitor_add_others_bug_threshold access level will be able to select users to add to the issue's monitoring list. Monitors will only be notified of the submission if both their e-mail prefs and the flags allow it (`$g_notify_flags['new']['monitor'] = ON`). Fixes 0006128 |
Affected Issues 0006128 |
|
mod - bug_report.php | Diff File | ||
mod - bug_report_page.php | Diff File | ||
mod - config_defaults_inc.php | Diff File | ||
mod - docbook/Admin_Guide/en-US/config/fields.xml | Diff File |