Story Map

The story map is a better way of organizing your backlog of stories . It provides a structure that is an understandable overview of the solution to be implemented—understandable to the business stakeholders as well as the development team. The stories for the map are those that we described in Chapter 28 , Writing Good Stories . You would have written these as you went about your requirements discovery. A backlog, more correctly a product backlog , is a collection of stories awaiting development. Here we are discussing how your requirements repository could be a story map, and how that can be an effective way of collecting and communicating your stories .

We attribute the story map to Jeff Patton; he introduced them in his book User Story Mapping. We are not using story maps here exactly as Patton described them. We have adapted the map to be more oriented toward requirements discovery, and (for good reasons) some of the terms we use differ. However, the spirit of story maps and how they are used remain the same .

The first thing to notice is that a story map is built and used iteratively. You write stories and add them to the story map as you discover them, and the development team uses the stories to progressively feed their development. So, you can think of the story map as a focal point for the whole effort, or as we are talking about here, a dynamic requirements repository .

The illustrations in this chapter show the story map as if it were being built along a wall using cards or Post-it notes. Indeed, many teams prefer to build their maps this way, as it gives them a large visual representation of the solution. Of course, dispersed teams use collaborative online tools for their maps .

Let’s look more closely at the story map and how you might use it .

The Story Map

Let’s start with what it looks like. Figure 35.1 shows the structure of the story map. Across the top you see Business Event Stories , one for each business event. The diagram shows three business events; you would probably have ten times that many, but space prohibits showing that many here.

Images

Figure 35.1

The structure of the story map. The annotations are the terms we are using for the components of the map.

The top row of the story map gives you and your stakeholders an overview, or the breadth of, the solution you intend to build. It does this by showing all the Business event stories . The problem space, and as a result the solution space, responds to business events, and each one has a business event story.

Each business event needs some automation built for it, and this is specified by the lower-level stories under each business event story.

The first lower level is the Functional stories . These break down the business event story into recognizable chunks of the functionality needed to complete the response to the business event.

Below each functional story are the Detailed tasks . This is quite a granular breakdown of the functionality, and there is no need for any further breakdown.

Business Event Stories

The top row of the map shows the business event stories . It is appropriate that these stories make up the top row of the map because collectively they give a complete narrative on what the solution does.

Consider this: Every business responds to business events. That’s all it does; it responds to the prompts and requests that come from external sources. For example, a customer wants to join a gym, the customer wants to change her method of payment, suspend her membership, re-sign her membership, enter the gym through the turnstile, request a personal instructor session, or any of the other things triggered by outside entities. There are also, as we discussed earlier, time-triggered business events: time to bill the customer for another month, time to send out fitness newsletters, and so on.

By building the top row from stories that describe (at a high level) each business event, the map describes the whole of the business—or more accurately, the whole of the solution that automates the business.

Images

Figure 35.2

Much earlier we discussed how the business events are derived from the flows on the context model. Instead of building a list of the business events, you write a business event story for each of them and add those to your story map.

As they are about business events, these stories can be derived directly from the context model, as shown in Figure 35.2 .

Each business event story describes one business event. Using the format of the stories as previously discussed, it looks like this:

As a [adjacent system]

I can [brief description of the functionality of the BUC]

So that [the business benefit, or outcome, of the story].

This is a brief, but for the moment, sufficient description of each business event. By reading the top line of the story map, a stakeholder becomes aware of the complete functionality of the solution, and what it will do to achieve the goals of the development effort.

Functional Stories

The business event story is a summary. The next level below it is made up of the functional stories . These represent the first breakdown of the business events. Each one is a recognizable chunk of the functionality needed to complete the work of the business event. You are breaking down to this level to provide more convenient chunks to develop.

The task is to find the main chunks of functionality. There should not be too many of them—two, three, four, or perhaps five—as these will later be broken down, or sliced, into still smaller chunks.

There is no need to write these stories in the usual format of “As a–I can–So that,” because the business event story has already set down the beneficiary and the benefit, and the functional story inherits them. All that remains for the functional story is to describe that particular chunk of functionality.

Note that in Figure 35.3 , the traveler wishes to choose her own flight based upon preferences of time, airline, seating, and airport. So, it is necessary to collect all available information about possible flights and let the traveler review and model the possibilities.

Images

Figure 35.3

The business event story sets out the beneficiary and benefit, and indicates the functionality needed to deliver that benefit. The functional stories break down the needed functionality into convenient chunks.

The functional stories also illustrate that once the optimal flight has been found, a reservation will be made with the airline and the traveler pays for her flight.

If you had been building prototypes earlier, you might have built a process model for this business event. In this case, the functional stories are likely to be activities from your process model. In any event, it is straightforward enough to find chunks of functionality that are small enough to be useful but large enough that you do not have too many of them under the business event story.

The thing to note about the functional stories is that they provide an overview of the functionality that responds to the business event. At this stage, informed business stakeholders should be able to read and understand what the delivered solution is intended to do for them.

Detailed Tasks

Below each functional story are the detailed tasks. These are the basic units of functionality . Their purpose is to show the low-level functionality (also the non-functionality) that completes the work of the functional story. You might think of them as the components of the functional story. You might also think of them as atomic requirements as we described them back in Chapter 25 , Functional Requirements , and Chapter 26 , Non-functional Requirements .

The detailed tasks belonging to a functional story will probably be executed by the solution in the same continuous piece of time. If you were using the solution that carries out these tasks, you would probably not stop before completing them. If there is a need to stop, it would indicate the need for a separate functional story.

Let’s look at the detailed tasks for the functional story “Find flights to/from destination,” as illustrated in Figure 35.4 .

Images

Figure 35.4

The detailed tasks are arranged in a column. These are the base units of functionality needed by the functional story.

You can see from these detailed tasks that as you descend, they add elaboration and sophistication to the functional story. The first two are the fundamental ones; the last three are there to make a better experience.

You prioritize the detailed tasks by putting the most important tasks highest in the column . You could, for example, release a minimal product by delivering only the top two detailed tasks. You would do this to demonstrate the solution’s range of functionality, rather than its depth, as a showcase of the complete solution yet to come.

No doubt, some of the detailed tasks will have been discovered during the investigation and design activities that preceded story mapping. Provided they fit the intentions of the functional story, you can add them to the map at any time.

Having worked on one functional story, you would then move on to add the detailed tasks for the others. You might do this right away, you might wait and do it in a just-in-time manner, or you might, depending on your way of working, leave the detailed tasks for the team to do at development time.

Growing the Map

Now that you have done this for one business event, you do it for the rest of them, but probably not all at once. You are constantly prioritizing the business events, which means that you are always working on the most valuable or most urgent ones. Some of the low-priority events could be delayed for some time.

Additionally, because the detailed tasks that are lower in the column are the more sophisticated and refined tasks, you might choose to leave these until later and add them when you reach a suitable point in your delivery.

Figure 35.5 illustrates a more complete map. Your map would only look like this close to the completion of delivery. Until then, it would be built on demand according to your priorities.

Images

Figure 35.5

A more complete story map. The cluster of stories under each business event story provides the needed functionality and is in increasing levels of sophistication as you descend in the map. Your maps will be much wider (and possibly deeper) than this illustration.

The discovery activities overlap and iterate—you are constantly jumping between them. The construction of the map can start as early as you like; perhaps as soon as you know the customers and their values. As you go about your investigation, you are learning more about the problem space and can use the map as the repository of your increasing knowledge.

The point is that writing the stories and building the map are not separate activities; they are concurrent with other activities that are themselves concurrent activities. This is illustrated in Figure 35.6 .

Images

Figure 35.6

The story map is intended to be a living artifact, constantly being added to, modified, and used, hence the two-way arrows.

Enhancing the Map

The map is not restricted to stories. There is other information it can carry.

You know the customer segment for your story. It’s the same as the adjacent system, and it is what you wrote in the “As a …” line of the story. The customer segment is the entity making the demand upon the solution, so it is most likely to be the eventual end user, or beneficiary, of this part of your solution. In Figure 35.7 , the beneficiary is the traveler. This information comes from your investigation of the solution space and from your original determination of the customer segments. You can annotate the story with expectations about the users, or a profile, or a persona , to help the designers and developers make this story more usable and convenient.

Images

Figure 35.7

This story map has been enhanced with a profile of the intended customer segment and a wireframe with some suggested interface ideas.

You might consider enhancing your story map with a wireframe sketch of the interface. The intention is not so much to design an interface, but to guide the designers. Keep in mind that, to a user, the interface is the product; by sketching an interface, you are sketching the user’s perception of the product. This paper-and-pencil approach is quick, and most importantly, it gives no indication that the wireframe is anything but a guide.

Stakeholders relate to sketches. Some stakeholders have trouble saying what they envisage, but a sketch done while they are in the room with you can, and probably will, elicit their needs. Sketches invite stakeholders to discuss it and make improvements to both the wireframe and the story map.

Adding Non-functional Requirements to the Map

Non-functional requirements can, and should be, added to your map.

When you investigated the solution space for your proposed business solution, you were partly appraising the solution for its suitability within its environment, and partly appraising the people in and around the problem space. It is these people who you must satisfy, and it is the non-functional requirements—its usability, security, look and feel, performance, and so on—that determine whether they accept or reject your solution .

In short, provided the functionality is met, it is the non-functional qualities that determine the acceptance or rejection of your product.

Please don’t think that the non-functional requirements are something that can be left until late and then bolted onto a story map. You should have discovered most of the non-functional requirements during your investigation while you were discovering the required functionality.

Non-functional requirements are discussed fully in Chapter 26 .

When you are building your story map, we suggest that the non-functional requirements are appended to the appropriate stories and tasks on the map. This is shown in Figure 35.8 .

Images

Figure 35.8

This shows a single business event and one of the subordinate columns. The non-functional requirements have been attached to the stories and detailed tasks. The non-functional requirements are not stories but needs or constraints that apply to the stories. You might consider using different colored cards for these.

Non-functional requirements are inherited. That is, if the business event story has a compliance requirement, then every story or task belonging to that business event inherits the same compliance need. Similarly, a look and feel requirement attached to a story high in the stack applies to every task below it.

Some non-functional requirements can be solution wide. For example, security requirements usually apply to the solution as a whole. Either repeat the requirement for this business event or tag it to say that there is a solution-wide requirement for this event or treat solution-wide requirements as a separate category of requirements as long as you ensure that they are part of the final product.

Similarly, there are non-functional requirements that apply to more than one business event story. We suggest that you add the requirement to each relevant event story and tag the requirement to say that it is a duplicate.

Prioritizing the Map

Prioritizing means that you are always working on the most valuable part of your problem space and solution space.

We suggest that the best way to start is by prioritizing the business events. You might have done this as you were discovering the events during the Blastoff. We discussed this in Chapter 8 , Prioritizing the Business Events . So, let’s assume you know the business events (or most of them) when you start your map. This gives you a map with the business events lined up, say, left to right in priority order. You know that priorities often change as you progress, so it pays to revisit your priorities and reorder the business event stories if needed. As you work on requirements discovery for the highest-priority events, you fill out the story map by adding functional stories, detailed tasks, and non-functional requirements.

You also prioritize the detailed tasks. MuSCoW prioritization is useful here. The categories are

Must have —non-negotiable needs

Should have —not vital to have immediately but are required prior to the solution being considered complete

Could have —nice to have but can be omitted

Won’t have —not a priority at this time

The “Could haves” and the “Won’t haves” can be pushed to the bottom of the map, or, if time is extremely short, discarded. The map shown in Figure 35.9 is fairly complete, but you would not wait until you have a complete map to start prioritizing.

Images

Figure 35.9

A story map showing a possible prioritization approach. The business events on the top row have been prioritized, and then the product owner has decided to develop and release the solution in the order shown by the shaded shapes.

As mentioned, the business event stories should be prioritized early, and then the detailed tasks prioritized almost as soon as you add them.

The releases shown as shaded areas are decided mainly by the product owner, as this is now moving firmly into his territory. Some of the prioritization might now be based on the needs of the product. For example, you might need to implement some parts of the story map to provide data for other releases. But keep in mind that the requirements discovery activity contributes significant knowledge of the business value of the artifacts on the map.

Note how for some of the events, the functional stories have been prioritized such that a release is not for a complete business event story. You might do this, for example, to get early feedback without building the whole event. You might also do it to put out a minimum viable product (MVP) . The MVP is used mainly as a proof of concept and should not be used as a substitute for doing the real work.

The usual prioritization criterion is value. Value means value to the customer segment (which most times is the user of your solution). Value might equate to frequency of use (if people use something a lot, they probably value it), it can be convenience, or it can be the take-up of the product. Value is value to your client or to the owning organization. Your client’s priorities are first legal compliance (it’s valuable to stay out of jail), contractual obligations (don’t get sued), supplying the client’s products or services, and then gaining revenue or saving costs.

Although value is the most common criterion for assigning priority, you must consider others. You might think about proof of concept, time needed to develop, risk (do the riskiest business events first), politics, or almost anything else. Whatever your priorities are, they change often; it pays to revisit prioritization frequently.

When we prioritize, we automatically think of the glamorous, high-priority items. But there’s value to you at the other end of the scale. Assigning a low priority to something optimizes your project time; the low-priority items do not have to be built right away, and perhaps they will never be built.

Using the Map Iteratively

The story map is your central repository for requirements knowledge. The map is loaded by the discovery activity, refined by the product owner, and used by the delivery activity.

Figure 35.10 demonstrates how you might use a story map to synchronize the requirements discovery with the solution delivery, but it requires some explanation. The numbers in the text refer to the circled numbers in the diagram.

Images

Figure 35.10

Using the story map for iterative development. The text contains a commentary on how this works.

  1. The business analysis activity has scoped the solution space and has determined the business events. These are added to the story map as business event stories. There will of course be many more than three events, but three will do for the purposes of illustration.

  2. The product owner is responsible for prioritization of the stories, which is best done at the business event level. Let’s say that the product owner has prioritized the map and made the middle business event the highest priority.

  3. The business analysts do a more detailed discovery for this event. This results in adding the functional stories and some of the detailed tasks. As soon as they are added, the delivery activity starts to develop the solution, which, for the moment, remains an incomplete or partial solution.

  4. Meanwhile, the product owner selects the next-highest-priority business event, the business analysts go to work discovering the requirements for this event, and as they add the details, the delivery team uses them to build more of the partial solution.

This process continues to iterate until both the map and the solution are complete, or any remainder is such a low priority that the team agrees not to continue with it.

Naturally enough, the requirements discovery activity must be quick enough to feed the map at a rate that does not delay the delivery. Also, naturally enough, if the stories added to the map are the right stories, then delivery will save time by having the correct understanding of what is needed.

The moral of the story here is that when you are using stories, the story map is the most versatile and useful way to keep them.

Review

We like the story map because it is a very visual presentation of the requirements. It has an overview of the solution along the top row of the map. These are the business event stories and it is the business events with which the stakeholders will be most familiar. By walking your business stakeholders along the top row, you can explain the entirety of the proposed solution.

The functional breakdown of the business, of its stories, is shown by the lower-level functional stories, detailed tasks, and/or atomic requirements that are attached below each business event story. These can be broken down gradually to the level of granularity that you feel is appropriate. There are no hard-and-fast rules about functional breakdown; you do it to give your developers the information they need to proceed with constructing the solution.

As we discussed above, you can enhance your story map with non-functional requirements, wireframe sketches, user profiles, and almost anything else you feel is appropriate to convey the requirements to the developers.

Prioritization is made easier by having the visual display that the story map provides. When you start to build a story map, you are at the beginning of implementation, and so your prioritization will be based on both business needs and the needs of the emerging product. That is, the product owner decides priorities for the stories, according to whatever will make the most coherent and useful partial solution.

An operational advantage of the story map is that it is built iteratively in sync with the requirements discovery. The business analysts add their newly discovered requirements and functional breakdowns to the map in time for the developers to take these stories from the map and use them to produce the growing incremental solution.

Resources

User Story Mapping: Discover the Whole Story, Build the Right Product by Jeff Patton (O’Reilly, 2014). This is the book that introduced story maps and remains the definitive work on the subject.

You can also find useful information about story maps at Jeff Patton’s website ( https://jpattonassociates.com/story-mapping ), which includes articles, videos, and workshop resources, as well as the original blog post in which he first described story maps.

Other books on agile development mention story maps, but Patton’s book is the most direct source of information.