Sub topic 10
Showing the WBS as an Outline, Tree Chart or Table
This chapter assumes you can already decompose scope into deliverables and work packages and that you number elements hierarchically. It covers how to present that structure. You should be comfortable reading outlines and simple Python.
One structure, three views
A work breakdown structure (WBS) is one hierarchy of elements. You can draw it as an indented outline, as a tree chart, or as a table with one row per element. The three views hold the same parents, children and codes. They differ in what they make easy to see and in how much extra data they can carry.
The view is a presentation choice. The WBS is the structure underneath, so you can change views without changing the project's scope.
The outline
The outline is the most compact view. Each element sits on its own line, indented one step per level, with its code in front.
1 Website Relaunch
1.1 Design
1.1.1 Page templates
1.1.2 Style guide
1.2 Content
1.2.1 Migrated pages
1.2.2 New landing pages
1.3 Platform
1.3.1 Hosting environment
1.3.2 Content management configuration
1.4 Project management
1.4.1 Project plan and status reportsStrengths:
- It fits in an email, a wiki page or a plain text file.
- It handles deep hierarchies, because it grows downward without getting wider.
- Version control tools can diff it line by line, so reviewers see exactly which element was added or renamed.
- Most project tools can import an outline, because each code already implies the parent.
Weaknesses:
- It shows siblings only as consecutive lines. Breadth is hard to judge at a glance.
- Extra attributes such as owner or estimate crowd the line quickly.
The tree chart
The tree chart puts the root at the top, with children in a row beneath their parent. Stakeholders tend to find it the easiest view to read, because the shape shows how scope divides.
Strengths:
- Level 2 is easy to compare, so gaps in coverage stand out when you check the 100% rule.
- It works well in steering committee slides and kickoff meetings.
- Uneven depth is visible. A branch that is much taller than its siblings suggests inconsistent decomposition.
Weaknesses:
- Width grows quickly. Past about 30 to 40 boxes, a chart no longer fits on a page and the labels become unreadable.
- Boxes hold only a short label, so the chart cannot carry descriptions or estimates.
- Redrawing by hand after every change is slow. Charts drawn by hand go out of date first.
A common fix for wide trees is to show levels 1 to 3 on one chart. Each deeper branch then gets its own chart that begins at a level 2 element.
The table
The table gives each element a row and each attribute a column. Hierarchy comes from the code and level columns, not from layout.
| Code | Name | Level | Parent | Responsible | Estimate (days) |
|---|---|---|---|---|---|
| 1 | Website Relaunch | 1 | none | Project manager | 21 |
| 1.1 | Design | 2 | 1 | Design lead | 11 |
| 1.1.1 | Page templates | 3 | 1.1 | Design lead | 8 |
| 1.1.2 | Style guide | 3 | 1.1 | Design lead | 3 |
| 1.2 | Content | 2 | 1 | Content lead | 10 |
| 1.2.1 | Migrated pages | 3 | 1.2 | Content lead | 10 |
Strengths:
- It carries attributes, so it is the natural view for estimates, owners and status.
- It sorts and filters in a spreadsheet, and it imports into scheduling and cost tools.
- Roll-up totals sit on parent rows beside the leaf estimates they sum.
- It is a short step to a WBS dictionary, which adds a description, acceptance criteria and exclusions per row.
Weaknesses:
- The hierarchy is no longer visible. A reader must scan the code column to see which rows belong together.
- A missing parent row is easy to overlook when someone edits a row by hand.
Choosing a view
| Question | Best view |
|---|---|
| Is this a first draft in a workshop? | Outline or tree chart on a whiteboard |
| Are you presenting scope to sponsors? | Tree chart, levels 1 to 3 |
| Do you need owners, estimates or status per element? | Table |
| Will the WBS be reviewed in version control? | Outline in plain text |
| Is the WBS larger than about 40 elements? | Table, with tree charts per branch |
Most projects use more than one view. A table usually serves as the working version, and the outline and charts are produced from it for different readers.
Generate every view from one source
The risk with several views is drift. Someone renames 1.2.1 in the chart and not in the table, and now the project has two WBSs. The safest practice is to keep one master record and generate the other views from it.
The script below reuses the nested structure from the roll-up example. It produces an outline and a table from the same data and checks that each child's code extends its parent's code.
wbs = {
"code": "1", "name": "Website Relaunch",
"children": [
{"code": "1.1", "name": "Design", "children": [
{"code": "1.1.1", "name": "Page templates", "estimate_days": 8},
{"code": "1.1.2", "name": "Style guide", "estimate_days": 3},
]},
{"code": "1.2", "name": "Content", "children": [
{"code": "1.2.1", "name": "Migrated pages", "estimate_days": 10},
]},
],
}
def walk(node, parent=None, level=1):
"""Yield (node, parent, level) in outline order."""
if parent is not None and not node["code"].startswith(parent["code"] + "."):
raise ValueError(f"{node['code']} is not under {parent['code']}")
yield node, parent, level
for child in node.get("children", []):
yield from walk(child, node, level + 1)
def rollup(node):
children = node.get("children")
if not children:
return node["estimate_days"]
return sum(rollup(child) for child in children)
def outline(root):
return "\n".join(
" " * (level - 1) + f"{node['code']} {node['name']}"
for node, _, level in walk(root)
)
def table(root):
rows = ["| Code | Name | Level | Parent | Days |", "|---|---|---|---|---|"]
for node, parent, level in walk(root):
parent_code = parent["code"] if parent else "none"
rows.append(
f"| {node['code']} | {node['name']} | {level} "
f"| {parent_code} | {rollup(node)} |"
)
return "\n".join(rows)
print(outline(wbs))
print()
print(table(wbs))Running it prints the outline first:
1 Website Relaunch
1.1 Design
1.1.1 Page templates
1.1.2 Style guide
1.2 Content
1.2.1 Migrated pagesThe table that follows has the rolled-up day totals 21, 11, 8, 3, 10 and 10 in its last column. A Mermaid chart can be generated the same way by emitting one A --> B line per parent and child pair from walk.
Common errors
- Outline indentation that does not match the codes. If 1.2.1 sits under 1.1 in the outline, readers and tools will disagree about its parent. Generate indentation from the code, as the script does.
- Tree charts that mix levels in one row. Boxes in the same row should be at the same level. A reader will assume that boxes on a row are comparable in size.
- Estimates on parent rows that are typed by hand. They fall out of step with the leaves. Compute them.
- Using the view as the plan. None of these views shows sequence or dependencies. An outline in time order looks like a schedule but is not one.
- Charts with unreadable text. If you must shrink the labels to fit, split the chart by branch.
Exercise
A WBS has 55 elements across four levels. The sponsor wants a one-page picture of scope, and the cost controller wants owners and estimates for every work package. Which views do you produce, and from what?
Show answer
Keep a table as the master, since it carries owners and estimates and can compute roll-ups. Give the cost controller the table. For the sponsor, generate a tree chart limited to levels 1 and 2, or levels 1 to 3 if it still fits, because all 55 boxes would not be readable on one page. If branches need more detail, add one chart per level 2 branch. Generate all views from the master so the codes and names stay identical.
Exercise
In an outline, element 1.3.2 is indented under 1.2. What problem does this cause, and how can a script detect it?
Show answer
The indentation says the parent is 1.2, but the code says the parent is 1.3, so tools and readers will place the element in different branches. A script can check that each child's code starts with its parent's code followed by a dot, and raise an error if it does not, as the walk function does.