Possible to count number of completed and uncompleted tasks without JS? #773
Answered
by
blackpeasy
blackpeasy
asked this question in
Q&A
-
I want to count the number of completed and uncompleted tasks in each note to show a completion progress percentage. Intuitively I would type something like Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
blackpeasy
Jan 19, 2022
Replies: 1 comment 2 replies
-
After a real struggle, I seem to have found a solution, and wrapped it all up in a progress bar:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
blackpeasy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After a real struggle, I seem to have found a solution, and wrapped it all up in a progress bar:
("<progress value="+number(replace(string(sum(number(split(replace(string(replace(string(file.tasks.fullyCompleted), "true", "1")), "false", "0"), ",")))), "null", "0"))/length(file.tasks)+" max=1>") as Progress