nextcloud / nextcloud/tasks

[Feature Request] Calculate a task completion rate based on its subtasks completion rate

Open
#2,795 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
706
Forks
117
Avg merge
8h 50m
Merged PRs (30d)
18

Description

Is your feature request related to a problem? Please describe.

When a task has subtasks, its completion rate should be deferred to its subtasks completion rates. For instance, when all subtasks are completed, the task should also have a 100% completion rate.

Describe the solution you'd like

For tasks having subtasks (and only in this case), defer the completion rate calculation to the sum of its subtasks' completion rate. That is:

if task.subtasks:
    task.completion = sum([subtask.completion for subtask in task.subtasks])
Describe alternatives you've considered

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the task and subtask completion-rate calculation in the Nextcloud Tasks codebase. Trace how tasks with subtasks are represented and how their completion values are currently derived, then add coverage showing the intended result for completed and partially completed subtasks.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.