•  
     
    story #20979 Display children in Roadmap
Summary
user
Display children in Roadmap

I have a broad and hierarchical overview of the activity

Overview

Artifacts ("tasks") displayed in the roadmap widget can have children (artifact link with type _is_child).

When the roadmap is displayed, the children are not displayed.

Mockup for collapsed tasks

User can expand a task to see its children. A REST call is made to roadmap_tasks/:id/children to retrieve a paginated collection of TaskRepresentation.

Only one level of children is displayed.

Mockup of expanded task

In the Links selector, we need to remove the possibility to display children.

Edge cases

Weird Hierarchy

Given hierarchy like:

  graph TD
    Epic1:::epic --> Story1:::story
    Epic1:::epic --> Epic2:::epic
    Epic2:::epic --> Story2:::story
    Epic2:::epic --> Story3:::story
    Epic3:::epic
    Epic4...:::epic
    ThemeA --> Epic5:::epic
    classDef epic fill:#ecfaf6,stroke:#28c4a0,color:#00775c
    classDef story fill:#f8eccc,stroke:#f18e06,color:#774a0a

Epic2 shouldn't be displayed in first place because it should appear as a child of Epic1. The general rule is:

  • Given a selected tracker (eg. Epic)
  • Display all artifacts that doesn't have an element of selected tracker as parent
    • Epic1 has no parent => displayed
    • Epic2 has a parent, it's Epic1 => not displayed
    • Epic5 has a parent, it's a Theme (not Epic) => displayed

Needed mockups

  • Caret to expand/collapse children
  • Error state when the list of children fails to load
Empty
Status
Empty
Done
Development
  • [x] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [x] Are permissions checked?
  • [x] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#20979
Nicolas Terray (nterray)
2021-05-31 11:03
2021-04-30 10:57
3800

References
Referencing story #20979

Git commit

tuleap/tuleap/stable

refacor: compute is_milestone in Task 19b54cfe25
feat: GET roadmap_tasks/:id/children 14ed468e71
fix: Rename roadmap_tasks/:id/children b67e2a9c82
feat: exclude _is_child from Links selectbox efe529d3cf
feat: display caret next parent tasks 8590b4870d
refactor: Encapsulate task inside a row cfc2897678
feat: filter subtasks that are out of date 944817ec0f
fix: display additional time unit at the beginning of the period bd0e1b0bc6
feat: loading state when displaying subtasks 343a3af2b7
feat: remove tasks that have parent from same tracker ae4e50a76d
feat: display subtasks c840a01cda
feat: error state for subtasks ad246df6a8
fix: Children can have more than one parent fff23e4c3b
feat: Display project for children b97fcb7704
feat: Display subtasks empty state fa2affc274
fix: add missing translation 56f125a53a
feat: Remove dependencies w/o title|timeframe semantic 32fe766179
feat: Display tasks with end < start e706cb23c2
Fix: Children in another project with a name too long => xref is not visible c9c2fa7dd4
feat: Display accessibility patterns in Gantt bars 964c13457e

Follow-ups

User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes