Stories

Traditionally, stories are used by agile teams to specify a piece of functionality to be developed. While they are waiting to be developed, they are assembled into a backlog. These stories are known as “user stories.” However, as we are discovering requirements, it is premature to be thinking about users. The term “user” implies that you envisage someone sitting in front of a computer, which in turn implies that you have a solution in mind. As you are in the process of discovering the business problem, it is definitely unhelpful to be thinking about the solution .

In this chapter, we show you how to make use of stories in a different way. These are not “user stories,” but stories about requirements. This is a trawling technique, so while we use the format of the user story, we’ll drop the “user.” We start by writing stories for the business events, and so we’ll call them “business event stories.”

The Business Event Story

Business events are happenings in the real world that cause the solution space to respond. Just to remind you, a business use case (BUC) is the chunk of functionality that your solution uses to process and complete the response to the business event. For example, a customer wanting to renew her insurance is a business event. The processing needed to accomplish the renewal—checking the terms, accepting the payment, sending out the policy documents, and so on—is the business use case.

So, this is where you begin to write stories—at the business event level. These are stories that are descriptors of the business use cases. As business event stories are high-level stories, there is some detail to be added later.

Some people refer to high-level stories as “epics.” However, there is no satisfactory definition of an epic apart from “a high-level story that may contain other stories or epics.” This is not useful—it means an epic could be almost anything. The definition does not provide any scope, or any boundaries to the amount of functionality it might cover.

So, instead of using this vague, overused, and imprecise term, we use the business event as the basis for our stories. You know exactly what a business event is: You know why it is triggered, where it starts, where it ends, and exactly how much functionality makes up the response to the business event. If you write a story for the business event, then it’s a story that is a bounded, independent, traceable descriptor of the solution’s response to the business event. The response is triggered the moment an external entity initiates a request and ends when the request is completely fulfilled.

A business event story is a bounded, independent, traceable descriptor of the solution’s response to the business event.

The business event story is bounded and independent in that the functionality it includes is not connected to any other business event stories. It is traceable because all the business events have one or more data flows on the context diagram, and the context diagram is where it all begins. See Figure 21.1 .

Images

Figure 21.1

The business events show on the context diagram because there are one or more boundary data flows associated with each event. The business event stories can be derived using the adjacent system and the functionality of the response to the business event. There is one story for each business event.

You have probably spotted that this bounded, traceable story is an ideal candidate for a development iteration or an implementation unit. But that’s just a bonus to come later; for the moment, we are concerned with discovering the requirements that are needed to solve the business problem.

For each business event, you write a story. It looks like this:

As a [customer segment]

I can [functionality that responds to my business event]

So that [business value].

The customer segment is the adjacent system that initiates the business event. The flow on the context diagram triggers the functionality of the story. Of course, at this stage the functionality is simply a summary description—you’ll explore it and discover its details later. However, it should be an accurate description of the functionality needed to provide the business value described in the last line.

Images

Figure 21.2

This is an extract from the Requirements Knowledge Model, which is discussed in detail in Appendix C , Volere Requirements Knowledge Model . This part of the model shows that the scope of the work can be subdivided into Business Events , and for each business event, you write a Business Event Story . These will later be broken down into the functionality that makes up the response to the business event.

Note the scope of the business event story. It begins with the adjacent system that triggered the event, describes the response the business makes, and states the business value generated as a result . In other words, business event stories are about the business.

The business event story gives an overview of the functionality. Later, you might need to break it down in order to see its functional composition. This is illustrated by the data model in Figure 21.2 .

Figure 21.2 shows entities called Functional Story , Detailed Task , and Atomic Requirement . This is the way we organize the breakdown of the top-level Business Event Story , and they are needed when you start to develop your solution. We shall come back to these in a lot more detail when we discuss story maps in Chapter 35 , Story Map .

Until then, let’s stick to business event stories.

The Story Format

As mentioned above, the suggested format of a story is as follows:

As a [customer segment]

I can [some functionality that responds to my business event]

So that [business value].

Let’s look at the story elements more closely.

“As a”

As a [customer segment]

The first part of the story points at the customer segment, which can be a person, some people, a system, or an organization that receives the benefit of the story. The customer segment is also the initiator of the business event. Or to put it another way, this is the adjacent system from the context model . See Figure 21.1 .

Be as descriptive as you can, and whatever you do, don’t write “As a user.” That is meaningless and gives no indication as to what the solution should be doing, who it should be doing it for, or why it should be doing it. On the other hand, “As a cargo loader” or “As a rider wanting to find a rental bike” or “As a bank customer wanting an overdraft” or “As a professional photographer” gives a clear pointer to what the story is about.

As we suggested in Chapter 6 , Customer Segments , you might be using a persona for your requirements discovery. A persona is an archetypal representation of a customer segment and is intended to give a human face to the characteristics of the population of the customer segment. You might prefer to personalize the story by writing “As Alice,” or whatever name you have given to the persona representing the customer segment.

To get good requirements, you need to ask some analytical questions.

  • ● Is this customer segment important? You obviously don’t want to spend time in the early stages developing solutions for unimportant customers. Ask if this customer segment makes a significant contribution to meeting the goals of the project.

  • ● Does the importance of the customer segment align with the priority given to the business event when you prioritized the events during the blastoff?

  • ● Is this customer segment the real initiator of the business event, or should you be looking at someone further away from the problem space?

  • ● Is this the real beneficiary of the story? Or should you investigate further and find the real one?

  • ● Do you know this customer segment well enough to know what it needs and what will be beneficial?

You might have to come back to some of these questions after you have written more of the story.

When your business event is time triggered, don’t write “As a clock.” The “As a” should cite the beneficiary. Time-triggered business events usually have to do with reports, statements, reminders, and so on. The beneficiary of these is usually the receiver of the output of the business event story.

For example, let’s say that the business event is Time to remind policyholders that their insurance is about to expire . This would happen a month before the anniversary of each policy, and the beneficiary of the event is the policyholder:

As a policyholder

I can be reminded of the expiration of my policy

So that I can renew in time and maintain continuous coverage.

Examples of other beneficiaries: Producing monthly bank statements is a staple of most banks. The customer segment in this case is the bank customer. The benefit is that the customer is updated with her financial position. A monthly (or weekly, or daily) sales report is produced for someone’s benefit. That person, or group of people, is named in the “As a [customer segment]” line of the story; for example, “As the Sales Director.”

The reason for going to a little trouble over the beneficiary is that the beneficiary must be important to the goals of the solution. This importance helps with prioritization. For example, “As the Chief Operating Officer” immediately makes the story important; “As the facilities superintendent,” not so much. Be as descriptive and accurate as possible, it helps you discover the real requirements.

“I can”

I can [functionality that responds to the business event]

Here are examples of what to write:

As a music fan

I can open an account with the streaming service

As a tax compliance officer

I can be informed of all bank customers who have made deposits over $10,000

Resist writing “I want.”

The functionality should be a description of what a solution will do to enable the beneficiary to achieve a business goal. You must also ensure that you are writing about the needed functionality and ignore how it would be done. Whatever you write on this line, ask if it is a solution masking the real need. Remember that there is a difference between a problem and a solution, and that by writing “I want” instead of “I can,” you are in danger of adding a solution to this part of the story.

Here is an example of what not to write:

As an iOS user

I want to sync data with an Apple Watch

So that I can track calories burned more accurately

Note the “I want” line. Syncing data is a solution; Apple Watch is a solution. By filling this line with a solution, the actual functionality is pushed onto the “So that” line. Tracking calories is an activity; it has a verb. However, you still don’t know why this guy wants to track his calories.

Is he trying to balance calories burned with calories ingested? If so, then this solution is not going to work. Where are his ingested calories? And what does syncing data have to do with calories? What is this “data”? It remains unsaid. This story is unlikely to lead to a solution that will satisfy anyone’s needs. And while we’re looking at it, the “As a” line is completely useless. It gives no indication as to why this story is important. Anybody with any requirement can be an iOS user.

If you delete the solution about the Apple Watch and write the following (which, incidentally, was written as part of the original story, so it appears to be needed):

I can track calories burned more accurately

tracking burned calories more accurately seems worthwhile, but more accurately than what? Perhaps we could turn it into this:

I can track my burned calories

The story would then make sense if it ran something like this:

As a health-conscious person

I can track my burned calories

So that I can ensure my daily caloric intake is balanced with calories burned.

The story is improving, and it now suggests that we can take it further. For example, is the “So that” line the real business value? If you asked why, you would find that this person is concerned about putting on weight. So, let’s rewrite the story as follows:

As a health-conscious person

I can ensure my daily caloric intake is balanced with calories burned

So that I maintain my healthy weight .

Keep in mind all the time that you are discovering requirements. Your stories are aimed at eliciting the real needs of the business problem. Revisit your stories as we did above, and ensure that the end result is a story that demonstrates an important business value.

Keep in mind all the time that you are discovering requirements. Your stories are aimed at eliciting the real needs of the business problem.

To this end, the story’s functionality should be a complete but not detailed description of what has to be done to respond to the business event. For example:

As a music fan

I can establish an account

So that I can stream music from the service.

As a policyholder

I can renew my insurance at the best available rate

As a highway patrol officer

I can be alerted if any vehicle in my vicinity is stolen or otherwise of interest

And so on. You have to work with your customer to be certain that the functionality is what is needed; in other words, you are discovering the requirements.

“So that”

Now we arrive at the most important part of the story: its rationale. Some people leave this out, and worse, some authors advocate leaving it out. Don’t. Without it, you cannot know if your story is correct or even useful. The line is:

So that [business value].

Let’s take this story from a receptionist at a busy health clinic:

As a medical receptionist

I can use any one of five different patient attributes

So that I can quickly locate any patient regardless of their means of identification.

This looks like a reasonable justification for this story. You have to talk to the receptionist and determine if it is solving an important problem. The receptionist tells you that when patients arrive, they don’t always have their patient number, but they will have a date of birth, an address, an appointment time, or their Social Security number or National Insurance number (or the equivalent depending on the country). This is a busy practice, and the receptionist needs to quickly and accurately identify people and flag their records for the doctor/nurse/practitioner. This rationale aligns with the goals of the project. It makes a constructive contribution to the eventual solution. It’s a valid story, and the rationale (“So that”) provides real business value.

We left the highway patrol officer’s story without a rationale. The complete story is:

As a highway patrol officer

I can be alerted if any vehicle in my vicinity is stolen or otherwise of interest

So that I can locate and stop the stolen vehicle as rapidly as possible to question the driver and passengers.

This provides business value to the officer, as well as to the police service (which is your customer for this project). In some cases, a business event has more than one beneficiary. For example, an insurance policyholder receives a business benefit when he renews his insurance: His insurance coverage continues. Additionally, the insurance company benefits from the revenue. You could continue this line and say that an employee of the insurance company benefits because she remains employed, and so on.

As a rule, stick to the beneficiary who receives business value directly from the outcome of the business event. If you absolutely need to, append other beneficiaries to the business event story.

On the other hand, consider this story and its rationale:

As a marketing manager

I want a content management system

So that I can manage and provide quality content and experience to my readers.

This story does not give us any real business value. Why does this manager want to “provide quality content and experience”? Surely the benefit comes when potential customers (not “readers”) respond to the marketing overture. The fact that someone is reading the literature is almost irrelevant. They might be reading it for their own amusement and have no intention of buying anything, or they are idly passing the time in the dentist’s waiting room.

The content management system is a presumed solution, and so should play no part in a requirements story. Perhaps the objective might be achieved with a content management system, but there might be alternatives that are better suited to the real purpose. Regardless, by including it in the story, the writer omitted the business value and gave the business analyst no chance to assess the importance of the story.

Presumed solutions should not be part of your stories.

It gets worse. The frivolous “So that” line spoke of quality content. This too is a presumed solution; it’s presuming that if the content is high quality, it will be more effective. This might be true, but equally might not. Additionally, would the employment of the content management system guarantee high-quality content?

And what did he mean by “quality content” anyway? You should talk to a real marketing person before specifying “quality content and experience” and determine the real business value of this story. Otherwise, you have no idea if this story makes any real contribution to the goals of the organization.

Let’s try to rescue this story by rewriting it as follows:

As a marketing manager

I can have enticing marketing material sent to potential and existing customers

So that I achieve an improved take-up rate.

Your development project is intended to produce business value. Writing stories that have no business value is pointless.

In case you’re wondering, the examples of poor stories in this book have not been carefully constructed by your authors to illustrate the points. They are other people’s stories being cited as good examples of how to write a story.

Keep in mind that you are using stories as an aid to discovering requirements. We have discussed above how you interrogate each part of the story to ensure its correctness. You can also interrogate the story as a whole. For example, you can ask analytical questions such as: “Why do you want to do that?”, “Where is the business benefit?”, “Is that really the initiator of this business event?”, and so on, until you arrive at the real business need. See Figure 21.3 .

Images

Figure 21.3

Stories are being used here to examine the problem and discover the requirements.

Stories alone are insufficient to serve as the requirements for your solution. However, they can be very useful to you in your efforts to discover all the requirements.

Images

Figure 21.4

The stories discussed in this chapter are stories about business needs. When these are known to solve the right business problem, the developers take over and extend the business stories with stories needed for implementation reasons.

Review

Writing a story for each business event gives you a collection of high-level stories that cover all the functionality needed by the problem space. Each business event has a purpose, and this is reflected in the “So that” line of the business event story. Your analytical efforts are to ensure that the “So that” rationale describes actual business value and that it aligns with the goals of your project. Or to say that a different way, the collection of “So that” justifications delivers the goal of the project.

Once the business event story is accepted, you dig deeper into the details of the functionality for the event. This means that you have to do some trawling—workshops, interviews, process models, stored data, and so on—to uncover the atomic requirements. Later, the developers add technological requirements to your business requirements (see Figure 21.4 ). Following chapters look at these topics.

For the moment, concentrate on the business event stories. If these accurately define the business outcome of the event, then they are the foundation for what is to come. By getting these stories right, you give yourself every chance of delivering the correct, most valuable solution.

Resources

User Stories Applied: For Agile Software Development by Mike Cohn (Addison-Wesley, 2004). The author is concerned with writing “user” stories aimed at agile development. However, his knowledge of stories is worth pursuing.

Agile Alliance ( https://www.agilealliance.org ). This organization provides resources on topics from user stories through articles, webinars, and conference materials.

The Mountain Goat Software Blog ( https://www.mountaingoatsoftware.com/blog ). Mike Cohn’s blog contains valuable insights and articles on user stories.