View Issue Details

IDProjectCategoryView StatusLast Update
0016811mantisbtplug-inspublic2014-03-05 02:01
Reporterrichroc Assigned To 
PrioritynormalSeveritytrivialReproducibilityN/A
Status newResolutionopen 
Product Version1.2.15 
Summary0016811: Plugin to notify multiple users on Issue create
Description

I was attempting to create a plug-in for my local install of mantis that did the following:

  1. Add a new field to the report_bug_page called "Notify Users" which would pull a list of current project users and allow the reporter to select multiple.

  2. Upon pressing Submit Report button on the report_bug_page, the plugin will send an email notification (of the bug that was just created) to the users selected in the "notify users" field.

For part 1, I believe I have that pretty much ironed out (it might ugly, I am not a developer by any means, but figured I might be able to stumble through)

For Part 2, I can't seem to figure out how to properly trigger the email to be sent to the users that were selected in the "Notify Users" field.

I have attached my plugin .php file for review
If anyone could help me out with this, I would appreciate it.

TagsNo tags attached.
Attached Files
NotifyUsers.tar.gz (1,455 bytes)

Relationships

related to 0006128 closeddregad Ability to add monitors to a bug when the bug is first reported 

Activities

richroc

richroc

2014-01-08 23:46

reporter   ~0038999

I figured out how to get part 2 accomplished. It's in NotifyUsers2.php.

Its ugly, and not exactly up to mantisbt code standards yet (I'll work on that...), but it works with one caveat:
The user that is assigned to the issue gets two emails. one from the issue creation and one from the notify users function, I'll need to figure out how to solve that...

nosorio

nosorio

2014-01-10 08:15

reporter   ~0039011

Hi, i need to do something similar. May you upload your plugin?

richroc

richroc

2014-01-10 15:01

reporter   ~0039014

nosorio,

I cleaned it up a bit and uploaded the plugin as NotifyUsers.tar.gz
Extract the NotifyUsers folder to your plugins directory and install.

nosorio

nosorio

2014-01-13 07:57

reporter   ~0039037

Thank you, your plugin is very useful, but i need to notify users of private issues, do you if this is possible?

richroc

richroc

2014-01-13 13:29

reporter   ~0039042

nosorio,
This plugin will send an email to the users selected in the "Notify Users" field when creating an issue. It does not care if the issue is set to "public" or "Private", the email(s) will be sent regardless.

ajaykumar.maurya

ajaykumar.maurya

2014-03-04 00:45

reporter   ~0039605

can we have it this configurable, so that we can only show users who are marked as certain role.
e.g. I want my client to see only the reporters in the notify users list.

richroc

richroc

2014-03-05 01:44

reporter   ~0039617

Good idea ajaykumar. I'm sure it can be done with not too much effort. I should have some free time tomorrow (March 5th.) to look into it.

One question:
Would it be ok to be able to set a "threshold" access level to show in the notify users list. For example: the admin could set REPORTER in the config and then REPORTER or higher level users would show up in the notify users list.

Or, are you looking to show ONLY Reporter and no other access level?

ajaykumar.maurya

ajaykumar.maurya

2014-03-05 01:57

reporter   ~0039618

Last edited: 2014-03-05 02:01

I am looking to show only reporter and no other access level.

I feel it should be configurable to set any level of user like
Reporter + managers, Reporter + etc...

Thanks for this plug-in it is going to be very useful.