Summarising subprojects
Posted: 26 Jul 2019, 02:03
Hello,
I'm customising a mantis installation.
We are managing issues using subprojects. This works great for the issue managers, but I need to give project managers a higher-level view.
Basically, in the 'summary' page, at the moment the 'By Project' lines for projects which only have sub-projects are just zero-valued. I would like to be able to make each of these lines show a sum of all open, in-progress and closed bug counts for all sub-projects of that project.
I have made plenty of changes to the PHP code to achieve my customisations but I'm a programmer, not a database expert. I have a feeling that the best way to handle this would be through a SQL query. Can anybody suggest a query that would return a count of, say, unassigned bugs for all sub-projects under a particular project that are accessible to the logged-in user?
I'll share my modifications when done.
Thanks in advance if you can help
Dan
I'm customising a mantis installation.
We are managing issues using subprojects. This works great for the issue managers, but I need to give project managers a higher-level view.
Basically, in the 'summary' page, at the moment the 'By Project' lines for projects which only have sub-projects are just zero-valued. I would like to be able to make each of these lines show a sum of all open, in-progress and closed bug counts for all sub-projects of that project.
I have made plenty of changes to the PHP code to achieve my customisations but I'm a programmer, not a database expert. I have a feeling that the best way to handle this would be through a SQL query. Can anybody suggest a query that would return a count of, say, unassigned bugs for all sub-projects under a particular project that are accessible to the logged-in user?
I'll share my modifications when done.
Thanks in advance if you can help
Dan