Getting a count for Tasks #2291
Unanswered
josephcrawfordSRH
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to count tasks from dataviewjs? I ask because I am using the tasks plugin and I do not see a way to actually sum the completed tasks for a weekly/monthly template. I was thinking I could reach into the dom and parse the number of tasks in each file either by counting children elements of a specific element or by getting the count from the footer of the tasks plugin and summing the values. It would be better though if it could be a query.
I am using https://github.com/obsidian-tasks-group/obsidian-tasks but cannot seem to get this to work with previous help from @holroy on LISTS, even though these are in bullet lists they do not appear to be on LISTS on the query. I did try TASKS instead of LISTS in the following query but Obsidian did not like that at all. I would like to filter based on the date the task was completed and not just in a status of completed. This way I can have it in my monthly, weekly, daily templates at the top for quick and easy reference.
Above is how I am currently counting lists and including them in the top of my file. The full message I currently have is the following
This week I was able to complete 20 code reviews, attend 9 meetings and I had 2 things that slowed me down!
I would love to be able to add the ability to say the following
This week I was able to complete 20 code reviews, attend 9 meetings, completed 30 tasks, added 10 new tasks and I had 2 things that slowed me down!
The counting of tasks has me a bit baffled, on top of that the added 10 new tasks would only count for tasks added that week which were not completed that week. I wouldn't want to count a task twice for completed and added so maybe i would need to filter that count based on the date added and the status of incomplete.
Beta Was this translation helpful? Give feedback.
All reactions