story represents a small piece of business value that a team can deliver in an
. While traditional requirements (like use cases) try to be as detailed as possible, a
is defined incrementally, in three stages:
- The brief description of the need
- The conversations that happen during
and iteration planning to solidify the details
- The tests that confirm the story's satisfactory completion
Well-formed stories will meet the criteria of Bill Wake's INVEST acronym:
||We want to be able to develop in any sequence.
||Avoid too much detail; keep them flexible so the team can adjust how much of the story to implement.
||Users or customers get some value from the story.
||The team must be able to use them for planning.
||Large stories are harder to estimate and plan. By the time of iteration planning, the story should be able to be designed, coded, and tested within the iteration.
||Document acceptance criteria, or the definition of done for the story, which lead to test cases.
Why Use User Stories?
- Keep yourself expressing business value
- Avoid introducing detail too early that would prevent design options and inappropriately lock developers into one solution
- Avoid the appearance of false completeness and clarity
- Get to small enough chunks that invite negotiation and movement in the
- Leave the technical functions to the architect, developers, testers, and so on
How Do I Write User Stories?
When getting started with stories, a template can help ensure that you don't inadvertently start writing technical tasks:
As a <user type>, I want to <function> so that <benefit> .
- As a consumer, I want shopping cart functionality to easily purchase items online.
- As an executive, I want to generate a
to understand which departments need to improve their productivity.
Try to avoid the generic role of User when writing user stories. User stories are about all of the role who interact with the system or who realize some value or benefit from the system. Not all actors are end users. For example, a role could be another system or someone who wants certain functionality in order to buy your product but will never actually use the product. It may be useful to create aggregate roles (such as consumer) and specialized roles (such as browser or frequent shopper).
In CA Agile Central, this template should be entered at the top of the Description
. This sets the tone for the details and
, which will be entered below.
What Size Should a User Story Be?
A story should be small enough to be coded and tested within an iteration—ideally just a few days. When a story is too large, it is called an epic. Backlog items tend to start as epics when they are lower priority. For
, epics should be broken down into smaller chunks, but not so small that you have moved into detailed design.
How Detailed Should a User Story Be?
- A team member can view a table of stories with
, name, size,
, and status.
- A team member can click a red button to expand the table to include detail, which lists all the tasks, with rank, name, estimate, owner, status.
- A team member can view the iteration's stories and their status with main fields.
- A team member can view the current
chart on the status
, and can click it for a larger view.
- A team member can view or hide the tasks under the stories.
- A team member can edit a task from the iteration status page.
When Do I Add Detail?
criteria provide the
for the story. As details about the story evolve, capture the critical ones as acceptance criteria. The
should list as many acceptance criteria as possible in order to clarify the intent of the story. Regardless of how detailed the acceptance criteria are, the team should have a conversation about them and adjust the acceptance criteria to capture the results of the discussion. Once an iteration has begun, testers can formalize acceptance criteria into acceptance tests.
In CA Agile Central, place the acceptance criteria directly beneath the value statement in the Description field. Delivery team members have a single location to see all of the story info with this method. By using bullet
, you can keep each criteria item brief and clear.
Who Uses User Stories?
, customer proxy, product owner, and anyone else who identifies a need for the product can contribute user stories.
Ownership and maintenance: The product owner owns the user stories and is responsible for writing, gathering, maintaining, and prioritizing.
Usage: Developers, testers, technical writers use user stories to be able to know what to implement and when they are done. Product owners track overall progress based on the status of the user stories. Management tends to track user stories rolled up to epics or features.
What Are the Top Mistakes That People Make?
- Too formal or too much detail. Product owners with good intentions often try to write extremely detailed user stories. If a team sees a story at iteration planning that looks like an IEEE requirements document, they often assume that all the details are there and will skip the detailed conversation.
- Technical tasks masquerading as stories. Much of the power of Agile comes from having a working increment of software at the end of each iteration. If your stories are really just technical tasks, you often do not end up with working software at the end of each iteration, and you lose flexibility in prioritization.
- Skipping the conversation. Stories are intentionally vague before iteration planning. If you skip the acceptance criteria conversation, you
moving in the wrong direction, missing edge cases or overlooking customer needs.
Below is a sample user story in CA Agile Central. This story has been discussed by the team in several refinement and planning meetings as it moved up the backlog, and is close to being scheduled into an upcoming iteration. The purpose of this user story is to provide purchasers on an online site the ability to use a credit