Writing Good Stories

This is a book about requirements and business analysis, so when we talk about stories, we talk about them in a way that is useful for the business analyst. The prime task of the BA is to understand the business problem. As this understanding matures, the analysts and appropriate stakeholders determine the solution that best solves the problem .

In Chapter 21 , Stories , we described the business event story and how you can use it to determine the beneficiary and outcome of the business events. This means that a business event story is the linchpin of the analysis that follows. The story’s event is isolated, and the analyst trawls, interviews, models, prototypes, and does whatever else is required to discover the set of requirements needed to respond to the event .

In this chapter, we want to revisit business event stories and discuss what makes a good, and therefore valuable, story. But before doing so, we need to make clear the intention of these stories .

First, these are not “user stories.” Normally, stories are used as descriptors of some action that a user does with a computer. The problem with this is that it assumes a solution: If there is a user, then there is a solution for the user to use. Assuming a solution also assumes that the problem is known and understood. We have learned from bitter experience that at requirements time, the problem cannot be assumed, that the stakeholders do not always understand the real problem, and that rushing into a presumed solution often—too often—produces a result that is an almost complete waste of time .

But you know that. You are reading a book about business analysis and requirements, which you would not be doing unless you understood the facts of business analysis life .

So, let’s press on and talk about business event stories, and what makes a good one .

Business Event Stories

Back in Chapter 21 we discussed the format of the business event story. It’s the same format as the user story, but it has important differences in meaning. The format we’re talking about is this:

As a [customer segment]

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

So that [received business value].

Let’s start by looking at a bad story and making it better. We’ll take this example of a solution for an employment agency that matches applicants to jobs. It has this story:

As a user

I can search for jobs.

On its own, this is of little use. You don’t know whether to include the story in the solution or not. You don’t know who a “user” is or why users would want to search for jobs. Having a facility for someone to search for jobs does not necessarily provide value. So, let’s step back.

The employment agency wants to match the best candidates with suitable jobs. Value to this client comes when the best candidates are put forward to the employer. Obviously, employers will stop using the agency if it sends along unsuitable candidates. So, we can improve the story to this:

As a candidate

I can search for jobs.

What is the justification for this story? Why does a candidate want to search for jobs? Let’s say that the candidate wants to search for jobs so that he can find prospective employment. Keep in mind that “searching” and “finding” are two different things. The candidate does not want to search for jobs, the candidate wants to find a job.

So let us modify the story so that it provides some relevant value to the candidate:

As a candidate

I can find jobs that meet my and the employers’ criteria

So that I will have the best chance of being called for an interview for the job I want.

The candidate’s criteria would be attributes like location, salary range, job description, type of company, employment conditions, social activities, and so on. The employer’s criteria would have attributes like experience required, other skills, attitude toward work, past employment, salaries, and other first-line determinants that provide some filtering of candidates. You can define these criteria in the data dictionary ( section 7 of the template in Appendix A ).

Now we’re getting somewhere.

We have moved from searching to finding , which implies that the solution will do the matching, not the candidate or the employer. Naturally, a good solution would provide an override, but for the moment, we can say that most of the employment would be done by matching the most suitable candidates to the available positions.

When the story talked about searching, it was talking about a solution to the problem, and as such, it masked the essence of the problem. Additionally, when the story was changed to “find,” it suggested that candidates don’t have to log on each morning and search for jobs; they can be notified when the solution makes a match. This gives more time for the candidate to polish or enlarge her skills and become more attractive to employers.

We will need other stories for the employment agency. A candidate must be able to post her profile to show her attributes, and the employer needs to post job vacancies with the desired attributes for candidates. There would also be stories so that employers and candidates can modify or delete their job postings and candidate profiles.

Going a little further with these employment stories gives us the following:

As an employer

I can post a precise job profile

So that I can find a limited number of the best candidates for the position.

The “So that” line is important. It demonstrates the value that the story delivers to the beneficiary. The employer does not want to waste time interviewing unsuitable candidates, she wants the best of them. Also, she does not want to interview dozens of people for the job; there is no time for that.

Admittedly, the “finding” story would be harder to implement than the simplistic “A candidate can search for jobs,” but it provides real value to the candidates, the employers, and the owner of the solution. The latter is significant, as its business viability is at stake here.

So, let’s look deeper into stories and what makes a good story.

Properties of Good Stories

We are talking about writing good business event stories as an aid to discovering the requirements. The story will help you if it concentrates on the customer’s business problem. Here we look at each component of a story, how to discover them, and how they work together.

We start with the beneficiary of the story.

As a [Customer Segment]

The customer segment gives an indication of what that person or thing is wanting to accomplish, and what functionality is appropriate.

As an occasional flier

As a regular flier

As a platinum-level frequent flier

These are different customer segments and would have different functionalities available to them. For example, platinum flyers can book their seats in advance, and occasional flyers have to pay if they want to select their own seats.

The customer segment is the first part of the information your story has to communicate. The next part looks at what the segment needs to do.

I Can

Note that you should write “I can” and not “I want.” Writing “I want” often results in a solution. For example:

As a cyclist

I want to follow my friends’ cycling routes

So that I can join them on rides.

After “I want,” the writer launches into an assumed solution. Perhaps she envisioned a map with the cycle routes highlighted. Who knows? What she really wants to do—this is the business problem—is to cycle with her friends. But let’s think about that for a moment. What do you need if you are to cycle with your friends? The thing that jumps out is that your friends have to tell you their cycling intentions before they set out. There is little point in knowing that Sally and Fatima like cycling along the canal towpath unless you know when they next plan to do so. In other words, the route without a start time is useless.

Instead of “I want,” let’s try “I can.” What must a cyclist be able to do if she is to cycle with her friends? The answer is she needs to know her friends’ intentions; that is, when and where they plan to cycle.

However, that suggests that our cyclist is willing to go along with whatever the friends suggest. Perhaps what she needs to be able to do—this is the “I can” part of the story—is to arrange a cycling outing with the friends she wants to cycle with. Perhaps some of her friends are planning a mountain route, but this weekend she wants something gentler.

So, the story really is about making arrangements:

As a cyclist

I can arrange a mutually acceptable cycling excursion

So that I can cycle with my friends.

Note that the original proposed solution masked everything—there is no need to build an app or anything at all. Simply forming a cycling group on one of the messaging apps would allow our amiable cyclist to find riding companions. In requirements discovery terms, this is great. By discarding the assumed solution and unearthing the real need, the good story writer has found a business problem that requires almost no development activity.

To summarize, “I can” must show a business result. It should show some functionality that enables the customer segment—the “As a” line—to achieve the story’s business value. A statement of this value comes next.

So That

So that … is important. This is the part where you specify the value, or benefit, of the story. If the story lacks value, it should be discarded. If the story demonstrates high value, then it should be prioritized to a higher rank. The value of a story helps the product owner/team leader plan the development; it helps the developers understand the rationale of the story and thus influence some of the features; it tells the testers how much effort to put into testing the product. In short, knowing the value of a story is valuable.

The following is a bad story we found, and it shows why getting to the real value is crucial:

As a bank account holder

I want to check my balance online

So that I can keep a daily balance 24 hours a day.

First, let’s get rid of the “I want” line; it’s an assumed solution and has little to do with the value of this story. The writer is assuming that logging on is the only way to achieve the need, but it’s not necessarily the way to do it.

The “So that” line, the justification, is also wrong: “24 hours a day”? Only insomniacs want to know their bank balance at 3 a.m. But “daily balance” is the part that raises the serious questions.

Asking why repeatedly is almost always the thing to do. If you ask this account holder why he wants to keep a daily balance, what answer could he give?

  • ● I’m filthy rich and want to see all my money and gloat.

  • ● I want to know if anybody has fraudulently taken money from my account.

  • ● I’m quite poor and want to know how much is left in the account.

  • ● I want to know if I can afford the new iPhone.

  • ● … and possibly more.

Working through each of these possibilities, we start with the filthy rich justification. This is unlikely to be true because anybody who is filthy rich would have most of their assets tied up in investments and property. The bank balance is only part of, and probably a very small part of, their total wealth.

Obviously, fraud is a concern of most bank account holders, but knowing just the balance is only partially helpful. To know if somebody has plundered your bank account, you need to know all the transactions that have occurred since you last looked at the account.

The next two answers come down to the same thing: Simply knowing the balance is not necessarily helpful. What account holders need to know is how much money will be left after all the contracted payments have been made. Contracted payments are things like the electricity bill, the phone bill, insurance, the car payment, rent and so on. The information that is valuable to the account holder is what will be left until the next payday. The phone lover wants to see if he can afford the iPhone; the poor person needs to see if there’s enough for new shoes for the kids.

So, our story needs drastic surgery. We suggest this:

As a bank account holder

I can be aware of my bank situation

So that I know my current and discretionary balances.

The story now provides something that is valuable to the account holder. Of course, it is now more difficult to develop than the original assumed solution. However, the original provided so little value that developing it would not provide much of a return to the bank. All banks offer to hold your account so that you can access it online or by phone. The bank that provides the more valuable facility as shown in the final story is much more likely to attract customers in the competitive market.

The bank account holder also mentioned that he wants to check for fraudulent activity. The assumed solution for that is to provide a list of recent transactions. The account holder would have to scan the list looking for abnormalities. However, most of what he looks at are the normal transactions: paying the electricity bill, direct payments of subscriptions, payments to known tradespeople, legitimate shops, and so on. These fit into a pattern of certain amounts for certain things. Look at your own bank transactions, and you’ll see that they are the same or similar every month. So, to know about fraudulent activity, the account holder really needs to be alerted when there are any transactions outside her normal pattern. The resultant story is this:

As a bank account holder

I can be aware of any abnormal transactions on my account

So that I can know immediately if fraudulent activity has taken place.

When you look at any value statement in a story, ask why that is valuable. And keep asking why until there is no further answer. “Why do you want to know your discretionary balance?” “I want to know if I can spend money.” It’s the same thing; in other words, there is no further answer to the question.

In earlier chapters, we discussed the essence of the problem, and essence applies here. Is the value statement getting to the essence of the business problem? If not, ask why a few more times. Does the “So that” line leave the solution to the problem unsolved? This example is taken from an energy monitoring situation:

So that I can see my daily energy usage

This is not solving the real problem. Knowing your daily usage is not all that helpful. Knowing which appliances and which heating/air conditioning levels consume the most energy is useful. Knowing how to use your heating/air conditioning more economically is more useful. Knowing which alternative suppliers are cheaper and provide a comparable level of service is still more valuable. The “So that” line should read as follows:

So that I can find the cheapest source of energy

To get to genuinely useful stories, you must

  • ● Ask why, and ask it repeatedly.

  • ● Get to the essence of the problem.

  • ● Discard any assumed solutions.

Recognizing real value is your job; this is requirements discovery. You discover what is really needed and record it in a way that everybody can understand the need, and what a solution must do to satisfy that need.

INVEST

The INVEST acronym was coined in an article by Bill Wake, and it is useful for our requirements discovery purposes here. The following inspection of the INVEST elements does not put exactly the same meaning as Wake used, but then he was approaching stories from a developer perspective. This is how it works from a requirements perspective.

Independent

For use with requirements, a story should be a separate piece of functionality, and one that is recognized as being able to stand alone. That is, the customer and the BA can explore it and find its requirements without having to refer to other chunks of functionality. Business events have this attribute.

Naturally enough, independence makes stories based on business events ideal units for development. In some cases, they will be too large for one development iteration and need to be split, but each of the sub-stories are functionally related and would be ideal targets for subsequent iterations.

We are suggesting that initially, you write stories for each business event and take advantage of its independence.

Negotiable

Negotiable means that the initial business event story is a placeholder for requirements , and the detailed requirements are negotiated with the customer. The story written at the business event level is not a detailed story, nor is it incomplete. It is a placeholder waiting for its detailed requirements to be discovered.

Valuable

Stories have to provide some value. Otherwise, you are wasting yours and your client’s time.

The value of a story comes in the “So that …” line of the story.

But not all stories are equally valuable. By having the value as part of each story, it allows you to prioritize your stories. This allows you to work on the most valuable stories first, leaving the less valuable ones until later (if at all).

Estimable

For developers, this means that they can estimate the effort needed for development. This is needed for planning iterations and other development tasks. It is less important for the requirements discovery activity. Besides, when you are writing a business event story, you really have only a vague idea how much effort it would take to implement that story, but this is probably enough to help with prioritization of your business event stories.

Small

This quality applies only to the development activity, where small stories are needed for iteration planning. For our needs here, the business event story is whatever size it is. Later, when we talk about story maps, we will demonstrate how to break down stories to make them small enough for development planning.

Testable

Requirements stories are testable in that the value line of the story can be tested. If the story reads “So that I can continue my insurance coverage,” then you are able to test whether the insurance is in fact continuous.

A better meaning for “testable” is that the story enables the customer to identify its value and confirm that the story’s functionality is something needed by the business.

Please don’t feel that you have to run each story you write past the gauntlet of an INVEST test. These attributes are here to give you some guidelines on writing good stories.

Non-functional Properties

All the stories that you have seen so far in this chapter specify the solution’s functionality. We know that for a solution to be successful, it must be usable, attractive, and secure; fit seamlessly into its operating environment; comply with any relevant laws and electives; and so on. These are the non-functional properties.

Back in Chapter 26 , we discussed non-functional requirements. Everything in that chapter applies to stories. However, if you and your team are writing stories, then you need a way to record the non-functional requirements.

You have some options.

  1. Append the non-functional requirements to each appropriate functional story.

  2. Some non-functional requirements are solution wide. Write these as we set out in Chapter 26 .

  3. Write separate non-functional stories.

Option 1 is preferable, as each non-functional requirement then carries its own fit criterion.

Option 3 would look like this as a usability requirement:

As a cabin attendant

I can easily understand the cabin control panel

So that I can use it correctly after one day’s training.

It would look like this as a compliance requirement:

As a human resources officer

I can securely access employees’ records

So that the company complies with all GDPR provisions.

However you decide to do it, ensure that the non-functional requirements are not left to chance or to the goodwill of the developers.

Review

As a reminder, we are using stories to help with requirements discovery. We suggest that the stories are written one for each business event. The format of the story helps you to ensure that you have discovered the right business events.

For example, the “As a” line nominates the customer segment for the story. The customer segment is the beneficiary of the story, and you must determine that this is a worthwhile beneficiary.

The “I can” line is an overview of the functionality of the response to the event. Elsewhere we refer to this as the business use case. We cannot stress enough that this line should not be a solution to the problem. If it is a solution, it is likely masking the real business need of the story.

The “So that” line justifies the story—it is the business value of the story. You can think of this as the benefit provided to the customer segment in the first line. You should examine this line carefully. Any stories where the stated value is weak (or missing) can be either given a low priority or discarded.

Business event stories are high-level stories. They are there to guide your requirements discovery. That is, for each story, you trawl or build prototypes to drive out the detailed requirements.

Later, we will look at how you can make use of these stories when you build a story map. The map is simply another way to uncover the details from the business event story.

Resources

User Stories Applied: For Agile Software Development by Mike Cohn (Addison-Wesley, 2004). Cohn is one of the best writers on stories, and this is a comprehensive treatise on the subject. It covers the principles of user story writing, along with various techniques and best practices.

The Agile Samurai: How Agile Masters Deliver Great Software by Jonathan Rasmusson (Pragmatic Programmers, 2017). This is a comprehensive introduction to agile software development and includes practical guidance on writing user stories.

If you need more on writing stories than we have provided in this chapter, there is a huge amount of information to be found online. Be aware that the different authors have different takes on user stories, and not all of them are suitable for requirements discovery.

Agile Alliance ( https://www.agilealliance.org ).

Scrum.org ( https://www.scrum.org ).

YouTube. There are lots of video tutorials and presentations on user stories on YouTube.