Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort by due date #16

Open
almeidaf opened this issue Jan 23, 2021 · 3 comments
Open

sort by due date #16

almeidaf opened this issue Jan 23, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@almeidaf
Copy link

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

@creecros
Copy link
Owner

creecros commented Jan 23, 2021

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:

$task_ids = $this->taskFinderModel->getAllIds($project['id']);

and here is the for each I am referring to:

foreach ($task_ids as $task_id) {

the other option would be to use your own models that grab the task id's how you want them.

@creecros creecros added the enhancement New feature or request label Jan 23, 2021
@almeidaf
Copy link
Author

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

@creecros
Copy link
Owner

maybe one day, when I have nothing to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants