How to duplicate taskwarrior sorting of tasks in dataview table or list? #1244
Replies: 4 comments 23 replies
-
How does tasks do it? |
Beta Was this translation helpful? Give feedback.
-
Having looked at the description in your footnote (thanks for that!), I will also note that the tasks plugin only supports some of coefficients from taskwarrior - for example, as far as I know there is no concept of "+next" or "blocking" in obsidian-tasks. If you were going to make your own calculation, you would probably want to first decide which features and coefficients you want to include and how to treat tasks that are missing certain fields that you want to use as coefficiencts. For example, if a task does not have a due date, where do you want to put it in your urgency calculation? |
Beta Was this translation helpful? Give feedback.
-
Has anyone of you figured out how to do this? |
Beta Was this translation helpful? Give feedback.
-
Here is some boilerplate code to build an urgency for a task in a normal query:
The example coefficients (and source query) are a little random based upon what kind of tasks I had in my test vault, but the gist of the idea should be easy enough to follow up on and to build your own urgency list (or to mimic the one from that other plugin). The |
Beta Was this translation helpful? Give feedback.
-
Is there a way to compute an urgency for each task ala taskwarrior1 and then sort the items according to that?
I imagine in DataviewJS it would be easier, but would be happy to see this work in straight query language too.
Thanks!
P.S. I know the Tasks plugin does this sorting, but I want to take advantage of the dataview Tables formatting.
Footnotes
https://taskwarrior.org/docs/urgency.html ↩
Beta Was this translation helpful? Give feedback.
All reactions