Re-order tasks by date

This topic contains 8 reply and 2 voices, and was last updated by towhid 9 years, 4 months ago
Viewing 8 Posts - 1 through 8 (of 8 total)
Author Posts
November 6, 2014 at 1:50 am 29800
towhid Is there an easy way to allow my users to be able to sort tasks in individual lists by due date? I looked under the hood and noticed you guys are using the JQuery Sortable UI to manage the order. My users want to see their tasks by due dates and growing tired of manually having to drag to re-order. Because of the structure of the todo lists and how the date is nested the normal method of using JQuery to reorder based on the date stamp has not been very easy. Any advice or insights you can provide would be very appreciated. c.
November 6, 2014 at 12:20 pm 29826
towhid towhid

Hello Kristin,

Currently we have not this feature right now. To view the due date please click “Outstanding Task”:.

Thank You. 🙂

November 6, 2014 at 10:44 pm 29870
Kristin Kristin

So I have to ask. I was poking around the front end plugin and I notice that those tasks are being pulled in order of date due. Can a developer tell me what is being called to order that in that due date order vs. the back end? I snooped around and didnt see anything obvious, is there a certain function I should be looking at?

November 7, 2014 at 12:27 pm 29913
towhid towhid

Hello Kristin,

I have forward this issue to our developer team. Right now developer team are in weekend. They will start from Sunday and check your issue.

Thank You. 🙂

November 9, 2014 at 12:09 pm 30035
towhid towhid

Hello Kristin,

Please open project-manager-pro/class/task.php, filter name is cpm_get_tasklist. You can change the sort task by this filter.

Let me know if you feel any difficulty.

Thank You. 🙂

November 11, 2014 at 11:04 pm 30238
Kristin Kristin

Will this overwrite the Jquery UI Sortable order that is stored in the DB?

November 12, 2014 at 11:59 am 30261
towhid towhid

Hello Kristin,

If you sort task except menu_order Jquery UI Sortable order will be overwrite.

Thank You. 🙂

November 13, 2014 at 6:35 am 30348
Kristin Kristin

Thanks, seems to be working so far.

For anyone that might need this in the future. The filter / function that needs to be modified or expanded on is cpm_get_task . The date meta key is _due. I tried sorting by using 'orderby' => 'meta_value_num', but it didnt like that so you have to use the plain meta_value and it seems to work.

November 15, 2014 at 2:00 pm 30519
towhid towhid

Hello Kristin,

Very glad to know that you have solved your problem also many thanks you for your nice solution. Hope it will help all.

Can you mark this topic as resolved. 🙂

Viewing 8 Posts - 1 through 8 (of 8 total)