Tree views are used to show items that form a hierarchical structure.

Picture 14: A tree view

We can start by adding a tree view by clicking on a product in the menu, select “edit type” in the three dot menu, and then add a tree view to the views section.

One way to display what we have in our Product context is to write the following formula in the Items field:

->> ”Product Context”:1234569

“Product Context” here refers to the context defined in chapter “Contexts”.

In the new view you can add items of the following types: Release, Feature (both as a child of the context Product, and any Release), and Story (as a child of a Feature). While this is fine, we can take it a step further and limit the tree to only show a view of the Features and their child Stories. Modify the formula as follows:

->> ”Product Context”:1234569
<<- ”Feature has Story”:1234570

Here, the backwards pointing arrow means that the formula will expand from every Story back to the parent Feature, and discards everything else, like the Product or any Releases.

As a final thing, go ahead and create a few Features for our Product and some Stories for them. This is a good way to check that your setup works as it should.

Picture 15: Adding a tree view