Replies: 7 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.
-
|
I had a similar problem, and found this issue while searching. Not sure if it the same, but the title is definitely relevant: I wanted to sort a bunch of tasks by created, and then limit the result, but the tasks weren't in creation date order. Turns out that priority (maybe among others) overrode the sort by create date. For an easy test, I created a test note that includes 3 tasks and the query: It turns out the Global Query is messing up the result. Without any Global Query, the above tasks are sorted by creation date. However, with my Global Query set as below, then the medium priority is sorted to the top. Per the documentation, I thought the Global Query items are prepended such that any sort I add would override them? My Global Query: So, not sure if this is working as designed, but I would expect the query's "sort by created" to override the Global Query sorts. (Assuming this is an issue (and not my misunderstanding, if you want me to open this as a separate issue, let me know as I'm happy to do that). Thanks, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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