Automatically update project progress percentage

Hello. Given all the TODO and DONE tasks in a page, I want to:

  1. Calculate the percentage of the DONE task (like a project progress percentage). That is, if we have 10 tasks but only 5 are done, the output should be 50%.

  2. Automatically place that result in the page property called “progress”

Any idea of implementation or if this is even posible? :pray:

Thank you!

This can be covered by the TODO Master Plugin by @Peng_Xiao

The same plugin allows you to use this: progress:: {{renderer :todomaster}}

1 Like

Just what I needed. Thank you. The only problem I see is that the blue and green colors for the DOING and DONE tasks are not appearing… Everything has the same color…

imagen

Wheares on the demo it looks like this

1 Like

I can see two colors in the screenshot, but the contrast between the two is very faint (and not matching the screenshot at all).

If you have a GitHub account, probably the best thing to do is to create an issue so @Peng_Xiao can fix the color scheme (though I think you’ve already done that seeing this issue).

I’ve marked @etc’s comment as the solution to keep the forum nice and tidy. I hope you don’t mind :slight_smile:

1 Like

Oh! Actually it was difficult for me to see it :eyeglasses:, but yes, there is some minor difference between colours!

Yes, at the end I thought it was better to open an issue directly on git. And yes, I was going to put it as solved actually :+1:t2:. Anyways if someone already found a solution for the color issue, answers are appreciated : )
Thanks!

2 Likes

Just add this to your custom.css:

.todo-master-progress-bar__bar-done {
	background-color:red;
}
.todo-master-progress-bar__bar-now {
	background-color:blue;
}
.todo-master-progress-bar__bar-later {
	background-color:green;
}

3 Likes

Much better now. Thank you

1 Like