sort by due date
hi is there a way to sort print output by due date instead of task id and also instead of printing the whole project task is there a way to print just a column or a swimlane
I know you don't work on this plugin anymore but maybe you could give me some hints
best regards
yes, but it won't be simple.
in the print controller, I grab all the task id's in the project, so there is no information for sorting any other way. you will need to grab all the tasks information instead, and then sort based on due date before reaching the for each. if thats your default now, then your done. otherwise you use options to sort in various methods. using this method, you will have the column information as well to exclude other columns or swimlanes if they don't meet the criteria, once you get to the for each.
here is where I get the task id's: https://github.com/creecros/Task2pdf/blob/0dfe30872065a9ee8f4393e9555168ead3ba7be8/Controller/PrintTaskController.php#L108
and here is the for each I am referring to:
https://github.com/creecros/Task2pdf/blob/0dfe30872065a9ee8f4393e9555168ead3ba7be8/Controller/PrintTaskController.php#L111
the other option would be to use your own models that grab the task id's how you want them.
thx for the answer creecros, since i'm not a programmer i don't have the skills to make the changes so i will probably just "hack" a way into printing the list of tasks i need. thx again for the plugin and your work on kanboard
maybe one day, when I have nothing to do.