Replies: 6 comments 2 replies
-
Hi @Gnossos, Thanks for using Tasks.
Impossible to say, as there are no task lines supplied for me to test this out. Here's my standard response in this situation... There is content in your vault that is not provided as text for me to copy, so for reasons explained in the following post, I am unable to investigate: https://publish.obsidian.md/tasks/Support+and+Help/Report+a+Bug If you can provide full text, and full numbered steps for a reproduction, as per the above, I will willingly have a look when I have time. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Hi @Gnossos, Perfect - the test page was really useful. The Your tasks do not have the Created Date emoji, so I need to update the documentation on sorting as it has been wrong for a long time. It says the default sort order is urgency - but in fact the following sort instructions are added after any that you add.
So that's what is going on. You can read more about urgency. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation. I've tried to make a revised Test Page that takes into account the plugin's option to set a created date on every added task. I originally did this in the vault I'm working on, which always had the created-date option turned on. Then I copied and pasted the revised test text into a page in the sandbox vault. The results are still problematic. See the test page below. Your note raises these concerns:
Your thoughts? |
Beta Was this translation helpful? Give feedback.
-
Hi, there are so many interrelated discussions going on here that I'm struggling to see how to separate all the points and reply in a reasonable amount of time. I will try to clarify a few things... Please read my final point before replying. Thank you. Sandbox vault
Yes, that is true. The end result is:
Invalid task lines in 2nd sample file
Please read this section of the documentation: What do I need to know about the order of items in a task? So, in your new test file:
The comment after the creation date meant that Tasks no longer parses either the priority or the creation date. Not all tasks having creation dates, after you enabled the setting.See Adding Created date to tasks. If you are using the Modal to create a task, and it does not add the Created date...
Please read the changes in Tasks 4.7.1 - for how using a global filter affects this behaviour. (Specifically, bug #2112 is now fixed since that release...) Testing your emojiA quick way to confirm that the emoji are correctly interpreted in your tasks is to pick a field and group by it. For example, add this line to your query:
And see if any any of the tasks in the Another way is to search for:
If the ➕ was read correctly, it won't be present in the final description. So that's another way to find your problem task lines. Controlling the sort orderIt's not possible to remove the 5 default sort orders. They are added at the end of any that you supply. The way multiple sort lines works:
So if you don't like the default sort order, add more sort instructions in your own query. The available sort orders are listed in Sorting. How about a way to tell Tasks to disregard the properties used in the final sort?That isn't going to be possible, as the order that Obsidian informs Tasks to read the files in your vault is not deterministic, and so not having a default sort order will effectively make the task order random in the search results. What next?I am happy to offer users support on the Tasks plugin, but large and rambling issues like this one take up hours of time. If there are any more questions here from this point on, please:
Once that is resolved, if there are any more questions, pick the next most confusing one... |
Beta Was this translation helpful? Give feedback.
-
Also I just noticed that this is in the Development section, which is for developers of the plugin: "Discussions about programming for the Tasks plugin". So I'm moving it to Q&A. |
Beta Was this translation helpful? Give feedback.
-
5 days on, I'm assuming that no news is good news, and all is fine.... 😄 |
Beta Was this translation helpful? Give feedback.
-
Code
Here is the code:
Expectations
What I expect: A list of all uncompleted tasks, sorted by the date they were created, with most recent at the top.
What I get: A list of all uncompleted tasks, sorted by priority and then within priority levels, the date they were created in descending order.
Questions:
Beta Was this translation helpful? Give feedback.
All reactions