avatar jurgenswaans Pro Jan 20. 2010. 3:50 pm
Hi Ilija,
One request I have... is it possible to order the tickets on the overview page assorte to due date?
Jurgen
avatar Ilija Studen Staff Jan 20. 2010. 4:12 pm
Hello Jurgen,

Currently it is not possible to sort tickets by due date automatically. You are free to sort them any way you want by simply dragging them to a new position.
avatar Nirav M. Dev Jan 20. 2010. 11:39 pm
Ticket hacks - that are part of Planning module - allow you to sort tickets by due dates.

You would need to buy the Planning module to get them.

If you always wanted them sorted by due date, you can hack the Tickets module (specifically the TicketsModel file) and add an appropriate ORDER BY clause.
Discover a new high in team productivity with our Best Selling & Most Loved activeCollab Extensions
avatar jurgenswaans Pro Jan 21. 2010. 2:12 pm
Hi Nirav,

Am going to buy your module next week, but would like to sort it in ac itself too or is this feature added outside your module? About your reports module and estimated time. Is the estimated time you enter in planning module assigned to a person and can you that way see in reports if someone is planned for more than eg 40 hours in a week?

I am not a programmer... you know where to add the hack for the time being?

Jurgen
avatar Nirav M. Dev Jan 21. 2010. 11:16 pm
Hi Jurgen,

1. Changing the default sort order of tickets requires changing core source code of activeCollab. This is referred to as a "hack" to activeCollab. The hack I mentioned is a part of our Planning module. Planning module also adds support for estimated time and workflow status to tickets.

2. The current linkage between Planning and Reports module is that you can see a graph of estimated time for your project in Reports module and compare it against the actual hours. Reports module does not yet show estimated times / allocations / availability for people. The simple reason for this is that a ticket can be assigned to multiple people, and we have no way to find out who's working how much on the ticket. Frankly, we also wanted to know resource availability / overbookings - but are limited currently. Once we figure out an easy way to assign time on a particular ticket to multiple people, we can accurately track their allocations.

3. As for the specific hack to sort tickets by due date:

- Open the "Tickets.class.php" file inside the models directory, within application/modules/tickets.
- Locate the function "findOpenByCategory"
- Locate the line
 'order' => 'ISNULL(position) ASC, position, priority DESC',

- Change it to
 'order' => 'due_on ASC, ISNULL(position) ASC, position, priority DESC',

- You can change it to "due_on ASC" if you want to sort in ascending order of due dates. Change it to "due_on DESC" if you want it to sort in descending order of due dates.
- Save the file and upload to the server if needed

Please be careful while making this change and take a backup of the file before making any changes.

Hope this helps.

:Nirav
Discover a new high in team productivity with our Best Selling & Most Loved activeCollab Extensions
avatar jurgenswaans Pro Jan 22. 2010. 4:21 pm
thanks very much for your very clear and informative answer Nariv!
avatar jurgenswaans Pro Jan 22. 2010. 4:36 pm
Hi Nariv,

Changed the file, but it doesn't work. It might be because I have used a different hack earlier to get the due dates, etc. shown. See attachment.

Jurgen
avatar Nirav M. Dev Jan 23. 2010. 11:10 pm
Hi Jurgen,

Do similar change in the "findOpenByProject" function as well. That should make it work.

:Nirav
Discover a new high in team productivity with our Best Selling & Most Loved activeCollab Extensions
avatar jurgenswaans Pro Jan 24. 2010. 8:22 am
Nirav, You certainly know what you are doing. It's working perfectly now!

Thanks!

Jurgen
avatar Nirav M. Dev Jan 25. 2010. 2:08 am
Super! Glad it's working as expected!
Discover a new high in team productivity with our Best Selling & Most Loved activeCollab Extensions