Page 1 of 1
Auto Assigning Issues to Manager on a project basis
Posted: 21 Jun 2011, 22:24
by modest
We are using Mantis 1.1.8. We have several projects in out Mantisbt database with a manager (access level) assigned to each project.
What we would like to do is that whenever a new issue is reported against a project, it gets assigned to the manager of that project automatically, so that the manager can decide to which developer the newly reported issue is to be re-assigned.
Re: Auto Assigning Issues to Manager on a project basis
Posted: 22 Jun 2011, 07:02
by atrol
You can assign a user to a category of a project. This user becomes the default handler when entering an issue.
Re: Auto Assigning Issues to Manager on a project basis
Posted: 22 Jun 2011, 07:29
by modest
atrol wrote:You can assign a user to a category of a project. This user becomes the default handler when entering an issue.
Yes, that's the problem in my case. We do not use categories for any of our projects. Should we just define a dummy one for the sake of enabling this feature?
Re: Auto Assigning Issues to Manager on a project basis
Posted: 22 Jun 2011, 08:32
by atrol
modest wrote:Should we just define a dummy one for the sake of enabling this feature?
There are some options to get the desired behaviour
a) Use a dummy category
b) Change the source code of the report page (not recommend)
c) write a custom function custom_function_default_issue_create_notify
http://www.mantisbt.org/manual/manual.c ... ctions.php
d) update to version 1.2.x of MantisBT and write a plugin which catches the event EVENT_REPORT_BUG
Re: Auto Assigning Issues to Manager on a project basis
Posted: 22 Jun 2011, 22:14
by modest
Atrol, I liked the idea of writing custom functions. Is there any example in the existing Mantis code base which shows how to get the manager (username) for the particular project against which the bug is filed? Also, where can I see the syntax of assigning the reported issue once we have the username of the person to which we want to assign the issue (in this case the manager of the project).