#3794·leantime

[FEATURE] Allow a To-Do to contribute to multiple Milestones

Author: DinoBelliniCreated Sep 23, 2026Updated Sep 23, 2026

What is your set up?

Self Hosted Server

Is your feature request related to a problem? Please describe

Currently, a To-Do can be assigned to only one Milestone.

This works well when a To-Do belongs exclusively to a single milestone. However, in structured projects a single work item may legitimately contribute to multiple milestones or deliverables.

For example:

To-Do: Implement firewall hardening for Customer X Milestone M03: Infrastructure Hardening Milestone M07: Security Assessment Remediation

The work itself is performed only once, but its completion contributes to both project outcomes.

The current workaround is to duplicate the To-Do and assign one copy to each milestone.

This creates several problems:

duplicated work items; potentially inconsistent completion status; duplicated or fragmented time tracking; duplicated comments and documentation; potentially different assignees or due dates for what is actually the same work; inaccurate workload and effort reporting; additional synchronization overhead.

From a project-management perspective, the work item should remain unique even when it contributes to more than one project outcome.

Describe the solution you'd like

Allow a To-Do to be associated with multiple Milestones.

However, rather than simply replacing the current relationship with an unrestricted many-to-many relationship, a backward-compatible model could retain the existing concept of a Primary Milestone and introduce Related Milestones.

For example:

To-Do ├── Primary Milestone: 1 └── Related Milestones: 0..N

The Primary Milestone could retain the current semantics for:

scheduling; default filtering; Gantt/timeline positioning; grouping; existing API behavior; existing reports.

The Related Milestones would indicate additional project outcomes to which the same To-Do contributes.

This approach could preserve backward compatibility while allowing more complex project structures.

Progress calculation

One design question is how a To-Do associated with multiple milestones should affect milestone progress.

For an initial implementation, Related Milestones could simply represent relationships/references and not affect automatic milestone progress calculation.

This would avoid introducing ambiguous weighting or double-counting.

A later implementation could optionally allow the completion state of the To-Do to contribute to related milestones, provided that the calculation rules are explicitly defined.

Data model

Currently, tickets/To-Dos contain a single milestoneid.

A possible implementation could preserve this field as the Primary Milestone for backward compatibility and introduce a relation table for additional milestone associations.

Conceptually:

ticket milestoneid → Primary Milestone

ticket_milestone_relations ticket_id milestone_id relation_type

This would avoid breaking existing installations, integrations and API consumers while allowing the model to evolve incrementally.

UI proposal

The existing Milestone selector could remain unchanged for the Primary Milestone.

An additional field could be introduced:

Primary Milestone [ M03 – Infrastructure Hardening ]

Related Milestones [ M07 – Security Assessment Remediation ] [ + Add milestone ]

This would also make the distinction between ownership/scheduling and contribution explicit to the user.

Why not duplicate the To-Do?

Duplicating a To-Do models the same unit of work as multiple independent units of work.

That creates inconsistencies in:

status; effort; time tracking; comments; attachments; assignees; dependencies; reporting.

The underlying work item should therefore remain unique.

Additional context

Related issues

This request appears related to several existing discussions around object relationships and milestone cardinality:

#2939 — Only a single milestone can be linked to a goal https://github.com/Leantime/leantime/issues/2939

This issue highlights a similar cardinality limitation between Goals and Milestones. It is particularly relevant because Leantime's own recommended workflow can require multiple milestones to contribute to a Goal.

#2550 — Link to-dos, milestones and other objects in comments https://github.com/Leantime/leantime/issues/2550

This request addresses the broader need to create relationships/references between Leantime objects such as To-Dos, Milestones and Goals.

#3678 — Linked Milestone does not update Goal current value or progress https://github.com/Leantime/leantime/issues/3678

This issue is relevant to the question of semantics and progress propagation between related project objects. Any implementation of multiple milestone relationships should explicitly define whether and how completion contributes to progress.

#3254 — Allow sorting and custom ordering of milestones in dropdown selectors https://github.com/Leantime/leantime/issues/3254

This is not directly about relationship cardinality, but is related to usability and scalability in projects containing a large number of structured milestones.

Expected benefits

This feature would improve Leantime's ability to model projects where work items contribute to multiple outcomes without duplicating operational work.

It would particularly improve:

traceability between execution and project outcomes; reporting consistency; time tracking accuracy; structured project management; cross-cutting technical activities; governance and compliance projects; larger projects with many milestones. Backward compatibility

A Primary + Related Milestones model could provide a migration path with minimal impact:

existing milestoneid remains valid; existing To-Dos continue to behave exactly as today; existing APIs can continue returning the Primary Milestone; additional relationships can be exposed through a new API property/endpoint; existing reporting and Gantt logic would not need to change initially.

This would make multiple milestone relationships an optional capability rather than a breaking change.