how to update different projects configurations in all_pro

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Anapheron
Posts: 19
Joined: 29 Oct 2015, 21:56

how to update different projects configurations in all_pro

Post by Anapheron »

I have customized my mantis with a column that calculates the days since the bug has been issued until it reaches a selected bug status (it may be closed, resolved, acknowleged, it depends on your decision in manage_config_workflow_page.php), then it stops counting (they do not go back to zero, just stop counting the days), but i have problems because when i select all projects, the configuration of all_projects start to run, not the configuration of each project.

Any ideas?
sorry for my horrible english.
thanks :D
cas
Posts: 1611
Joined: 11 Mar 2006, 16:08
Contact:

Re: how to update different projects configurations in all_p

Post by cas »

What is the problem here? It does it for all individual bugs.
Perhaps the problem is your calculation. You should be able to capture this in the query select statement such that it has hardly impact on performance.
It should be something like round((unix_timestamp-date_submitted)/(3600*24)) as NumberOfDays :mrgreen:
Post Reply