WBS Markdown is an NPM package designed to make it easier for software developers to create and manage a Work Breakdown Structure (WBS). A WBS can be a powerful tool in the estimation process. This is fully compatible with an Agile workflow.
This tool is designed to be used by a software developer and assumes you are skilled at editing text files (markdown specifically). The breakdown structure is managed in a Markdown file format which you are probably already familiar with. Using your favorite editor you can collapse regions, perform mass updates, re-structure, and more.
The generated report is a static HTML file. It uses Vue.js components to add some interactive features.
Example reports that show different ways of using the WBS Markdown tool. These are the rendered static HTML reports that are created from a markdown file.
- Bicycle Product Sample - Markdown file Example shows the breakdown of a the creation of a new bicycle product. This is an adaptation from an example given on the WBS Wikipedia page.
- Rails Commerce Project - Markdown file Example shows a simple/small Rails e-Commerce project with a detailed breakdown of a new "Forgot my password" feature. This is a "high level of detail" breakdown and is an example of what that may look like. Remember, you choose the appropriate Level of Detail for your immediate need.
How many times have you estimated a new feature and you ended up being way off? Yeah, I've been there too many times myself. Management and Project Managers need some idea of the amount of work something will be. This helps me give a better estimate so I don't forget parts of the system that are impacted by a change.
As we continue to build out the features and the product, the project file is checked in with our source code so it is shared and expanded to represent the code being created.
An additional benefit, I wanted to be able to track the progress of features being built. This allows for marking off tasks as being completed (which can be checked in with the implementing code). Since the report output is a static HTML file, a project build system can generate the report for what is committed on, say, the master branch and expose feature progress in that way as well.
I created this tool for myself and my team. I share it in the hopes it can help others as well.
Using npm
:
npm install -g wbs-markdown
Using yarn
: (NOTE: Installation using yarn currently doesn't work and is a known issue. The workaround for now is to install using npm.)
yarn global add wbs-markdown
Upgrading to a newer version:
yarn global upgrade wbs-markdown
These are the commands use:
wbsm init
- One-time setup for a directory. Creates a configuration file.wbsm new
- Creates a newwbs.project.md
markdown file.wbsm r
- Generates an HTML report from the defaultwbs.project.md
file.wbsm w
- Watch for changes to thewbs.project.md
file and auto-generate the HTML report.wbsm o
- Open the generated report in your default browser.
wbsm init
This will create a file named .wbsm-config.json
in your current working
directory.
This is a sample configuration file:
{
"reportTitle": "WBSM Project Report",
"defaultWorkUnit": "d",
"unitConversion": {
"h": 1,
"d": 6,
"w": 30,
"m": 120
},
"avgHoursPerDay": 4.5,
"workUnitConfidencePct": {
"h": 95,
"d": 80,
"w": 60,
"m": 30
}
}
Create a new project markdown file. This file can be checked in with the sourcecode of your project.
wbsm new
Optionally specify the name of the new file to create. Defaults to
wbs.project.md
.
wbsm new wbs.my-project.md
This is helpful for generating the report explicitly when you want. For instance, a CI server could generate the report file based on a git hook commit to master.
Basic version. Defaults to look for a markdown file titled wbs.project.md
.
wbsm report
wbsm r
You can generate a report from a specifically named file using the -m
flag and
the filename.
wbsm report -m wbs.my-project.md
wbsm r -m wbs.my-project.md
You can override the generated HTML report output filename using the -r
flag
and the filename.
wbsm report -r custom-report-name.html
wbsm r -r custom-report-name.html
After generating the report, open it in the default system browser using the -o
flag.
wbsm report --open
wbsm r -o
Basic version. Defaults to look for a markdown file titled wbs.project.md
.
wbsm watch
wbsm w
This uses the same command options as wbsm report
. You can override the
markdown file to use and the output file to generate.
This is helpful when you are working on your project file and keep switching back to the report.
wbsm --help
wbsm new --help
wbsm report --help
wbsm watch --help
wbsm open --help
If upgrading from a pre-1.0 version, you will want to add the "filter" component to your project file. This became a component which lets you customize the default display mode and the placement of the filter selection in your report.
The document uses a Markdown style. Anything you can create in Markdown is valid. This makes it easy to customize and create something that works and makes sense for your project and organization.
There are a number of "components" to use for helping to get the most out of building a Work Breakdown Structure in Markdown.
There are several valid ways to define a story item.
- Story description {story=StoryId}
- **StoryId**: Story description {story=StoryId}
- **StoryId**: Story description {story=StoryId group="Group Name"}
The first one is minimum for a Story. A story can optionally be linked to a group. The bold StoryId is just to help with usability in reading and interacting with the document.
Examples
- **ISSUE-123**: New Billing Integration Service {story="ISSUE-123"}
- **[ISSUE-123](https://example.com/issue-link/ISSUE-123)**: New Billing Integration Service {story="ISSUE-123"}
Remember that it is just Markdown, so it can contain links to external issue trackers or anything relevant.
The work item is the heart of the document.
- [ ] Item description {work=1d link=987}
- [x] Item description {work=1h link=987 actual=1.5h note="note to self"}
Attributes:
[ ]
- work item is incomplete[x]
- work item is complete{link=(story)}
- links a work item to a specific story{work=(duration)}
- estimated duration to complete. The more specific the estimate, the higher the confidence. There is higher confidence in5d
than in1w
.- Expressed as
unit
andtime
. Examples:1d
,2.5h
,0.5w
- Supported values:
h
- hoursd
- daysw
- weeksm
- months
- Supported values:
- Expressed as
{actual=(duration)}
- (optional) actual time required to complete (for personal documentation){confidence=(value)}
- (optional) explicitly set the confidence for the work estimate. A default confidence percent is used based on the time used. An hour long estimate has a higher confidence value than a week long one.{note="Text"}
- (optional) note to associate with the work item. A note is visible on the rendered report on a work item through a "note" icon. It is also exposed in the "table" component's display of work items. Ex:{note="forgotten"}
{new=true}
- (optional) explicitly signal that something in the project structure should be treated as "new" when filtering, even though it isn't a work item that is directly estimated. It can be added at the top-level "new" item and all contained child items will be hidden when switched to the "Existing Structure Only" filter view.
NOTE: Must be nested under a non work item.
Example:
- BillingSystem
- Integrations
- [ ] Quickbooks Online {work=1m link=987}
- Email Templates
- [x] Quickbooks Integration communication problem {work=2h link=987}
Displays a Filter radio group for changing the current filter or mode of the display.
The selection for the filter is written to the browsers local storage so it will remain the through a browser refresh.
filter {#display-filter}
Displays a button that toggles the options that affect the style of the Work Breakdown Structure.
style {#display-style}
- Numbering - Uses the traditional WBS numbering style for the list. Traditional numbering uses an outline style like "1.1.1.2"
- Bullets - Uses a bullet list for the WBS list.
- Show colored deliverable checks - Work items appear with a "checkbox". This option determines if they are colored or not.
- Show progress - Shows progress bars at the parent level for work items. It is cumulative for all work items nested under it.
- Show totals - Display the computed work totals on the WBS or not.
Displays a list of buttons for toggling the "Level of Detail" shown in the WBS. Helpful for "zooming out" to a higher level, then drilling down into a specific area to explore.
level {#detail-level}
Creates a chart that shows each story's work size, amount completed and optionally actual time spent.
chart {#stories-chart}
When stories are toggled on/off, they are included or removed from the chart.
Creates a toggle link. Helpful for flipping the inclusion of a story. If you want to focus on 1 or 2 stories, you can toggle all of them off and just turn on the ones you wish to focus on.
toggle {#stories-toggle}
Creates a component that totals all the selected stories. Optionally it can be linked to a specific group. This is effectively a sub-total then. When no group link is set, it gives the total for all the checked stories.
totals {#stories-total}
totals {#stories-total group="Phase 1"}
Generates a table with all the work items' details in an easy to access way.
table {#stories-table}
This helps get data out and easily copied into a spreadsheet or other system. When a developer is working on measuring their ability to improve at estimate accuracy over time, they need data. This helps collect that data for personal use.
This also exposes any "notes" on a work-item that otherwise aren't displayed.
Google Chrome and Chromium
Settings > Search "content settings" > Content Settings > Cookies.
If you want to continue to "Block third-party cookies", then you can add an exception to allow access for local storage to specific files or all local HTML files. The following is a sample allow filter for all HTML pages that are loaded from your local machine.
file:///*
- Multiple chart options. A total/initial chart (where confidence represents what it was initially) and one that is "remaining".
- Compute the confidence in the work that remains.
- Give estimate on when the work might be completed based on previous estimates that are marked done.
- Report more on estimated vs actual (where recorded)
- For work marked done where no "actual" was entered, use the work value? Helps keep the "actual" line moving more correctly.