Sub topic 7
Writing User Stories with Acceptance Criteria
Assume you understand the basic roles of product manager, designer, and engineer, and that a product feature turns a user need into a change in the product. This chapter focuses on turning that need into a shared, testable description of behavior.
From user need to user story
A user story is a short description of a feature from a user's point of view. It explains:
- Who needs something.
- What they need to do.
- Why the outcome matters.
Use this pattern:
> As a [type of user], I want to [action], so that [benefit].
For example:
As a team admin, I want to export the member list as a CSV file, so that I can share it with finance.
The story is not a full specification. It gives the team a reason and a direction. Designers can use it to explore the experience. Engineers can use it to identify the behavior that must be built. Testers can use it to check whether the behavior works.
A story should describe a user outcome, not an implementation. “As an admin, I want a button that calls the export API” describes a solution too early. The user cares about receiving the member list, not the API call.
Add acceptance criteria
Acceptance criteria are conditions that must be true for the story to be accepted. They turn a general goal into observable behavior. Good criteria are:
- Specific enough to test.
- Written in terms of behavior and results.
- Independent where possible.
- Clear about important permissions, errors, and boundaries.
A common format is Given/When/Then:
- Given the starting situation.
- When the user takes an action.
- Then the system produces a result.
For the export story:
| Scenario | Given | When | Then |
|---|---|---|---|
| Successful export | I am a team admin viewing the member list | I choose Export | A CSV file downloads with one row per member |
| Restricted access | I am not a team admin | I view the member list | The Export option is not shown |
| Empty list | I am a team admin and the team has no members | I choose Export | The system downloads a CSV with the required header row |
The criteria make disagreements visible before implementation begins. For example, the team must decide whether an empty export should download a file, show a message, or disable the action.
Avoid common errors
Writing solution stories
A story such as “As an admin, I want a green Export button” fixes the design before the problem is understood. Describe the outcome first. Leave visual and technical choices to the appropriate design and engineering work.
Combining several outcomes
“As an admin, I want to export, filter, schedule, and email member lists” is difficult to estimate and test. Split it into smaller stories when each outcome can be delivered or reviewed separately.
Using vague criteria
“Export should work quickly” cannot pass or fail without a definition of “quickly.” State the measurable expectation, such as “the download begins within three seconds for a list of up to 10,000 members,” if that threshold is agreed.
A practical review
Read each story and ask:
- Can a user explain why this matters?
- Does the story avoid prescribing an unnecessary solution?
- Can every acceptance criterion be observed or tested?
- Are permissions, empty states, errors, and limits covered?
- Could the team deliver and review this story without depending on several unrelated outcomes?
Exercise
Rewrite this story so it describes a user outcome: “As a manager, I want a dashboard with three blue cards that calls the reporting endpoint.”
Show answer
As a manager, I want to see the key team metrics in one place, so that I can review team performance without opening several reports.