Home Forums Plugin Support WP Project Manager Pro Re-order tasks by date

This topic is: resolved

This topic contains 8 replies, has 2 voices, and was last updated by  towhid 4 years, 7 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #29800

    Kristin
    Member
    Post count: 27

    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.

    #29826

    towhid
    Participant
    Post count: 4505

    Hello Kristin,

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

    Thank You. ๐Ÿ™‚

    #29870

    Kristin
    Member
    Post count: 27

    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?

    #29913

    towhid
    Participant
    Post count: 4505

    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. ๐Ÿ™‚

    #30035

    towhid
    Participant
    Post count: 4505

    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. ๐Ÿ™‚

    #30238

    Kristin
    Member
    Post count: 27

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

    #30261

    towhid
    Participant
    Post count: 4505

    Hello Kristin,

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

    Thank You. ๐Ÿ™‚

    #30348

    Kristin
    Member
    Post count: 27

    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.

    #30519

    towhid
    Participant
    Post count: 4505

    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 9 posts - 1 through 9 (of 9 total)

The topic ‘Re-order tasks by date’ is closed to new replies.