tasks icon indicating copy to clipboard operation
tasks copied to clipboard

Calculate task progress percentage by number of items done

Open sergey-dryabzhinsky opened this issue 7 years ago • 6 comments

Steps to reproduce

None. Feature request.

Expected behaviour

Add possibility to set task progress in number of items: 0 to M. Default - 0 to 100 (as percents). And use slider to set current number of done items. This will recalculate percents / progress-bars. Variants of progress view could be switched via radio element in right panel.

Actual behaviour

Not implemented.

Server configuration

Any.

Client configuration

Any.

Logs

None.

sergey-dryabzhinsky avatar Sep 20 '18 15:09 sergey-dryabzhinsky

#139 seems to be similar. As I understand it, you propose what is requested there PLUS that sub-tasks are marked as done if one would set the slider accordingly, correct? Example: Task with two subtasks, radio button is set as 0 to M. Slider is set at "50%". First Sub-Task is marked as done.

linusha avatar Dec 04 '18 22:12 linusha

No, it's not about subtasks. I'll try to do some illustration soon.

sergey-dryabzhinsky avatar Dec 05 '18 06:12 sergey-dryabzhinsky

Made in dev tools: _2018-12-05_09-24-38

The idea is in that checkbox. It switches result text that rendered in not active row and first text input:

  • if checked (by default) - text "$N % complete" rendered
  • if not checked - text "$N of ($Max-$Min) items complete" rendered

This can look ugly (UI). Maybe better add row above with that checkbox switch and min/max settings.

sergey-dryabzhinsky avatar Dec 05 '18 06:12 sergey-dryabzhinsky

Something like this: _2018-12-05_09-39-05

sergey-dryabzhinsky avatar Dec 05 '18 06:12 sergey-dryabzhinsky

If there is planned to use subtasks as "progress items" then there additional checkbox-input can be used. Like: [x] Show progress in percents [x] Use subtasks as progression items

Maybe such UI should be in "dropdown" panel inside "%" row. For example, by "cog" button before "done" in right buttons group.

sergey-dryabzhinsky avatar Dec 05 '18 20:12 sergey-dryabzhinsky

I like the ideas discussed here, but I want to offer another option, that is my idea.

I would also like to use sub-items to aggregate the super-items progress. I would not use the number of done items, but add the possibility to add weight to a sub-item that gets concerned when calculating the super-items progress percentage.

Example:

  • super-item [weight: 100%, progress 25%]
    • sub-item 1 [weight: 25%, progress 100%]
    • sub-item 2 [weight: 75%, progress 0%]

The default value of the weight could be 100% divided by the number of sub-items, so it would also be compatible with the ideas form above.

The main difficulty I see is the recalculation of other weights of same-level sub-items if the user changes a weight, to assure that the sum stays 100%. But I would also be happy, if weights of the same-level getting added up and are used to calculate a percentage.

Example:

  • super-item 1 [weight: 1 ⇒ equals 33%]
    • item 1 [weight: 2 ⇒ equals 25%]
    • item 2 [weight: 2 ⇒ equals 25%]
    • item 3 [weight: 4 ⇒ equals 50%]
  • super-item 2 [weight: 2 ⇒ equals 67%]

ahorn42 avatar Dec 09 '18 12:12 ahorn42