Find a course

Module 4: Building and Managing the BacklogLesson 8 of 1212 min

User Stories and Acceptance Criteria

Write user stories that capture who, what and why, check them with INVEST, add Given/When/Then acceptance criteria and split big stories into thin slices.

Step 1 of 14Learn

From "the system shall" to a real person

A requirements document for the fitness app contains this line: "The system shall support class notifications." Three developers read it and imagine three different features: push notifications for every class, a weekly email digest, and an SMS when a class is cancelled. Nothing in the sentence says who needs notifications or why.

A user story reframes a requirement around a person and a purpose:

As a member who books early-morning classes, I want a reminder the evening before, so that I don't oversleep and lose my spot.

The common template is:

As a [type of user], I want [some goal], so that [benefit].

Each part does a job. Who tells the team whose problem they're solving. What describes the goal from the user's point of view, not the implementation. Why explains the value, which helps the team find better solutions and helps the Product Owner order the backlog.

User stories aren't part of Scrum itself; they come from Extreme Programming. But they're the most popular way to write Product Backlog items, because they keep the conversation focused on users rather than on features for their own sake.

Step 2 of 14Learn

Card, conversation, confirmation

A user story is deliberately short. It isn't a full specification; it's a placeholder for a conversation. Ron Jeffries, one of the creators of Extreme Programming, described stories with three Cs:

  • Card: the story is short enough to fit on an index card. That limit forces focus.
  • Conversation: the details come from discussion between the Product Owner, Developers and, ideally, users. Questions like what time should the reminder go out? Should members be able to turn it off? get answered here, during refinement or planning.
  • Confirmation: the agreed details are captured as acceptance criteria, so everyone knows how to confirm the story is complete.

This is the Agile value of individuals and interactions in action. A 10-page specification written by one person and handed over invites misunderstanding. A short story plus a 15-minute conversation with the people who'll build it usually produces a better shared understanding.

A common mistake is writing stories from the system's or the team's point of view: "As a developer, I want to refactor the database." That's a technical task, which may well be necessary, but it isn't a user story. Either describe the user benefit it enables or simply list it as a technical backlog item.

Step 3 of 14Practice · Choose one

Which of these is the best-formed user story?

Step 4 of 14Practice · Diagram

Anatomy of a user story

Which part helps the team judge whether a simpler solution would serve the user just as well?

Tap the shape that answers the question, then press Check.

Anatomy of a user storyParts diagram: User story, As a [type of user], I want [a goal], so that [a benefit], Acceptance criteria.User storyAs a [type ofuser]I want [a goal]so that [abenefit]Acceptancecriteria
User story
As a [type of user]

A real role with real needs, such as a member who books classes.

I want [a goal]

What the user wants to do, in their words, not a technical design.

so that [a benefit]

Why it matters. The benefit helps the team find simpler ways to deliver it.

Acceptance criteria

The conditions that confirm the story is done for this item.

Step 5 of 14Learn

INVEST: a quick quality check

Bill Wake's INVEST acronym is a widely used checklist for good backlog items. A good story is:

  • Independent: can be built and delivered without waiting on other stories, as far as possible.
  • Negotiable: details are open for discussion; it's not a fixed contract.
  • Valuable: delivers value to a user or customer on its own.
  • Estimable: the team understands it well enough to estimate its size.
  • Small: fits comfortably within one sprint, ideally just a few days of work.
  • Testable: there's a clear way to check whether it's done.

Stories rarely satisfy all six perfectly, and that's fine; INVEST is a guide, not a law. But each letter points at a real problem. A story nobody can estimate usually means the team doesn't understand it yet, so it needs a conversation or a quick investigation (often called a spike). A story that isn't valuable on its own is often a technical layer in disguise. A story that isn't testable will cause arguments about whether it's done.

In practice, Small and Testable are the two most often violated, and fixing them fixes many other problems.

Step 6 of 14Practice · Match the pairs

Match each INVEST letter to its meaning.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. I
  2. N
  3. V
  4. E
  5. S
  6. T

Step 7 of 14Flashcards

INVEST warning signs

Tap a card to flip it.

Step 8 of 14Learn

Acceptance criteria and Given/When/Then

Acceptance criteria are the specific conditions a particular story must meet to be accepted. They turn a short story into a clear, testable agreement. For the reminder story:

  • A reminder is sent at 7 p.m. the evening before each booked class.
  • No reminder is sent for classes booked after 7 p.m. the evening before.
  • Members can turn reminders off in their settings.
  • If a class is cancelled, no reminder is sent.

Many teams write criteria in Given/When/Then format, which comes from behavior-driven development:

  • Given some starting context
  • When an action or event occurs
  • Then an expected outcome follows

For example: Given a member has booked Tuesday's 6 a.m. spin class and reminders are on, when it is 7 p.m. on Monday, then the member receives a push notification naming the class and start time.

This format is precise enough that testers can turn it directly into test cases, sometimes automated ones.

Acceptance criteria are different from the Definition of Done. Acceptance criteria are specific to one story: what this feature must do. The Definition of Done applies to every story: the quality standard all work must meet, such as code reviewed and tests passing. A story is complete only when it meets both.

Step 9 of 14Practice · Put in order

Put the parts of this acceptance criterion in Given/When/Then order.

Drag the items, or use the arrow buttons, to put them in order.

  1. Then no reminder is sent to that member
  2. Given a member has a class booked and reminders turned off
  3. When 7 p.m. the evening before the class arrives

Step 10 of 14Learn

Splitting big stories into thin slices

A story like "As a member, I want to manage my bookings" is too big for one sprint. Big stories, often called epics, need splitting. The goal is vertical slices: each smaller story still delivers something usable end to end, through every layer from screen to database.

Useful ways to split:

  • By workflow step: view my bookings; cancel a booking; reschedule a booking.
  • By business rule: cancel with full refund more than 24 hours ahead; cancel with no refund within 24 hours.
  • Happy path first: book a class successfully; then handle a full class; then handle a payment failure.
  • By data or platform: pay by card first; add digital wallets later.
  • Simple first, then enhance: a basic list of bookings; then filters and sorting.

The anti-pattern is splitting by technical layer: one story for the database, one for the API, one for the screen. None of those is usable or testable by a user alone, so the team can't get feedback until all three are done, which defeats the purpose of small stories.

A well-split backlog lets the Product Owner make finer decisions: maybe cancel a booking is urgent, while reschedule can wait.

Step 11 of 14Practice · Sort into groups

Is each of these a good vertical slice or a horizontal (technical layer) split of "As a member, I want to manage my bookings"?

Tap an item, then tap its group (or drag it there).

Step 12 of 14Diagram

Splitting the epic into vertical slices

Splitting the epic into vertical slicesHierarchy diagram: Epic: manage my bookings, See my upcoming classes, Cancel a booking, Late-cancel with a fee, Move to another time, Join a waitlist.Epic: managemy bookingsSee myupcomingclassesCancel abookingLate-cancelwith a feeMove toanothertimeJoin awaitlist

Tap a shape with to see more.

Each child delivers something a member can use, from screen to database.
Epic: manage my bookings
See my upcoming classes

A simple list. Already useful on its own.

Cancel a booking

Happy path first: cancel more than 24 hours ahead.

Late-cancel with a fee

A business rule added as its own slice.

Move to another time

Rebooking, built after cancel works.

Join a waitlist

A later slice, only if data shows full classes are common.

Step 13 of 14Compare

Acceptance criteria vs. Definition of Done

AspectAcceptance criteriaDefinition of Done
Applies toOne specific backlog itemEvery backlog item and Increment
DescribesWhat this feature must doThe quality standard all work must meet
ExampleReminders can be turned off in settingsCode reviewed and automated tests passing
Who mainly shapes itProduct Owner with Developers and usersThe Scrum Team, guided by organizational standards

Step 14 of 14Practice · What would you do?

What would you do?

A story reads: "As a gym manager, I want a complete reporting dashboard with attendance, revenue, instructor ratings and forecasts." The Developers estimate it would take three sprints. What should the team do?