In the previous lesson we saw that the items near the top of the Product Backlog should be small, understandable, and testable. Scrum does not say how to achieve this: it imposes no format for backlog items. The most widespread practice for doing so is user stories, accompanied by acceptance criteria. It is worth making this clear from the outset: user stories are not part of Scrum. They come from Extreme Programming and became popular in the early 2000s; today most Scrum teams use them because they fit very well with the way Scrum works. In this lesson you will learn to write stories, to assess their quality with INVEST, to define acceptance criteria both as rules and as Gherkin scenarios, to split large stories, to organize them into epics and a story map, and to use the Definition of Ready with caution. All of it with the real TaskMaster Teams items.

  1. What a User Story Is

A user story is a short description of a need, told from the point of view of the person who has it. It is not a complete specification, but a reminder to have a conversation.

A few facts about its origins:

  • Kent Beck introduced them in Extreme Programming in the late 1990s, as a lightweight alternative to requirements documents.
  • In 2001, Ron Jeffries described the "three Cs" that we will look at in section 3.
  • In 2003, Bill Wake proposed the INVEST criteria.
  • Mike Cohn brought them to a mass audience with his book User Stories Applied (2004).

Why do they work so well with Scrum? Because they shift the focus from what to build to for whom and why, and because they force people to talk instead of handing off documents. Compare:

Traditional requirement (the 1.0 document) User story
"FR-37: The system shall allow lists to be shared via the permissions module as per section 4.2.1" "As the coordinator of a small team, I want to invite my teammates to our space so that we all see the same tasks"
Focuses on the system Focuses on a person and their goal
Aims to be complete Is deliberately incomplete: the detail emerges from conversation
Written once and approved Refined and adjusted continuously

  1. The "As a… I want… so that…" Format

The best-known template, attributed to Rachel Davies and her team at Connextra (2001), has three parts:

As a <type of user>,
I want <capability or action>
so that <benefit or goal>.

How to use each part:

  • As a identifies who needs something. It should be a specific type of user ("team coordinator," "invited member"), not a generic "user" or "the system."
  • I want describes what they want to be able to do, in the user's language, without technical implementation details.
  • So that explains why. It is the most important part and the one most often left out: without it, the team cannot propose better alternatives.

For TaskMaster Teams, María and Pablo (UX/UI) defined three types of user based on interviews with beta customers:

User type Description
Team coordinator Creates the space, invites people, and divides up the work. Usually uses the web
Team member Receives tasks, completes them, and comments on them. Mostly uses mobile, often with poor coverage
Invitee Does not have an account yet; receives an invitation

Examples of stories from the TaskMaster Teams backlog, good ones and ones that could be better:

Story Assessment
"As a team coordinator, I want to assign a task to a member so that it is clear who is responsible for it" Good: specific user, clear action, explicit benefit
"As a user, I want there to be an assignments table in the database" Bad: describes a technical solution, not a need; "user" is generic
"As a team member, I want to get a notification when a task is assigned to me" Could be better: the "so that" is missing; do they want to find out right away, or is a daily summary enough?
"As a team member, I want to manage my tasks" Bad: far too vague; it could mean anything

The format is an aid, not an obligation. Items such as a research item (PB-07) or a technical improvement (PB-13) can be written differently. What matters is that the why is clear.

  1. The Three Cs: Card, Conversation, Confirmation

Ron Jeffries summed up the nature of a story in three words:

flowchart LR
    C1[Card<br/>short card<br/>reminder] --> C2[Conversation<br/>conversation among<br/>PO, Developers, and users]
    C2 --> C3[Confirmation<br/>acceptance criteria<br/>that confirm it is done]
    C3 -.-> C2
  • Card: the story fits on a card. This physical limitation is intentional: it prevents writing a document and forces people to talk.
  • Conversation: the most valuable part. María, the Developers, and, where possible, real users talk to understand the need. Most of that conversation happens during refinement.
  • Confirmation: the acceptance criteria that make it possible to check that the story does what it should. The dashed line in the diagram indicates that writing them often raises new questions that reopen the conversation.

A common mistake is to stop at the Card: writing the "As a… I want… so that…" sentence and passing it to the Developers without a conversation. That recreates the document handoffs of version 1.0, just with shorter documents.

  1. The INVEST Criteria

INVEST is an acronym that describes the qualities of a good story:

Letter Quality Checking question Example of a problem at TaskMaster
I Independent Can it be developed without waiting for another story? "Comments on mobile" and "comments on web" written so that one does not work without the other
N Negotiable Does it leave room to discuss the solution? "Use Firebase for notifications" locks in the technology before any discussion
V Valuable Does it deliver value to a user or the business? "Create the comments table" delivers nothing on its own
E Estimable Do the Developers understand it well enough to size it? "Reliable offline sync" is far too uncertain
S Small Does it fit comfortably in one Sprint? PB-10 (offline sync) is an epic
T Testable Can you verify that it is done? "The app should be fast" cannot be checked without a number

Some important clarifications:

  • Independent is an ideal, not an absolute rule. Some dependencies are unavoidable (you cannot assign a task if there is no team space), but they should be kept to a minimum.
  • Estimable only requires the team to understand the story well enough to size it; specific estimation techniques are covered in Agile Planning and Estimation.
  • When a story cannot be estimated because there is too much technical uncertainty, the solution is usually a time-boxed investigation, known as a spike, such as PB-07 on reminders on Android.

  1. Acceptance Criteria as Rules

Acceptance criteria are the conditions that a specific story must meet for the Product Owner to accept it. They make the Confirmation of the three Cs concrete. Remember the difference we saw in Scrum Artifacts: the Definition of Done applies to every item and is about quality; acceptance criteria are specific to each story and are about behavior.

The simplest format is a list of rules. This is how PB-02 looked after refinement:

PB-02 - Invite members to the team space

As a team coordinator,
I want to invite my teammates to our space
so that we can all see and manage the same tasks.

Acceptance criteria:
1. Only members of the space can create invitations.
2. An invitation expires after 7 days.
3. A space can have at most 10 members; once the limit is reached,
   no more invitations can be created and a warning is shown.
4. If the invitee does not have an account, they can create one from the invitation itself.
5. If the person is already a member of the space, they are informed and no duplicate is created.
6. The coordinator can see the list of pending invitations and can revoke them.

Why it is written this way:

  • Each criterion is a verifiable rule: Sara can design a test for each number.
  • The figures (7 days, 10 members) remove ambiguity. The 10-member limit comes from the Product Goal, which focuses on teams of 3 to 10 people.
  • Criteria 5 and 6 came out of the conversation: Sara asked what would happen if someone were invited twice, and a beta customer mentioned that she sometimes typed the wrong email address.
  • No criterion says how to implement it (which tables, which exact screens): that is the Developers' decision.

This format is quick and sufficient for many stories. When there are behaviors with several steps or preconditions, the scenario format is clearer.

  1. Acceptance Criteria in Gherkin: Given, When, Then

Gherkin is a structured language for writing behavior scenarios that anyone on the business side can understand and that tools such as Cucumber or Behave can also turn into automated tests. It emerged from behavior-driven development (BDD), proposed by Dan North. Its basic structure is:

  • Given: the context or initial state.
  • When: the action or event.
  • Then: the expected outcome.
  • And / But: chain additional steps of the same type.

Gherkin uses English keywords by default, and it also supports keywords in many other languages if the file starts with a # language: header.

6.1. Example: Inviting a Member

Feature: Invite members to a team space
  As a team coordinator
  I want to invite my teammates to our space
  so that we can all see and manage the same tasks

  Background:
    Given Lucía is a member of the space "Marketing Team"
    And the space "Marketing Team" has 4 members

  Scenario: Invite a person who does not have an account
    When Lucía invites "[email protected]"
    Then a pending invitation is created for "[email protected]"
    And the invitation expires in 7 days

  Scenario: The member limit cannot be exceeded
    Given the space "Marketing Team" has 10 members
    When Lucía tries to invite "[email protected]"
    Then no invitation is created
    And Lucía sees the warning "This space has reached the maximum of 10 members"

  Scenario: Expired invitation
    Given Jorge received an invitation 8 days ago
    When Jorge opens the invitation link
    Then he sees the message "This invitation has expired"
    And he does not join the space

Line-by-line explanation:

  • There is no # language: header: English is Gherkin's default language, so the tools recognize the keywords directly.
  • Feature: names the functionality. The next three lines are free text: this is where the user story is copied in as context.
  • Background: groups the Given steps shared by all the scenarios in the file, so they do not have to be repeated. Here, that Lucía is a member of a space with 4 members.
  • Each Scenario: describes one specific behavior with concrete data. Using names ("Lucía," "Jorge") and real values makes the scenario understandable without further explanation.
  • In the second scenario, its own Given step (10 members) overrides the data from the background for that case: it describes the boundary situation.
  • The quoted strings, such as the limit warning, are values the test will check literally.

Notice that each scenario corresponds to one or more of the criteria in the list from section 5. Gherkin does not replace the conversation: it documents it precisely.

6.2. Example: Assigning a Task, with Several Cases

When the same behavior is repeated with different data, you use a scenario outline with a table of examples:

Feature: Assign a task to a team member

  Scenario Outline: Who can receive a task
    Given the task "Prepare presentation" exists in the space "Marketing Team"
    And "<person>" has the status "<status>" in that space
    When Lucía assigns the task to "<person>"
    Then the result is "<result>"

    Examples:
      | person | status             | result                  |
      | Marta  | member             | task assigned to Marta  |
      | Jorge  | pending invitation | cannot be assigned yet  |
      | Iván   | no longer a member | cannot be assigned      |

How it works:

  • Scenario Outline: defines a template with placeholders between < >.
  • Examples: contains a table; the first row holds the placeholder names, and each subsequent row is a case. The tools run the scenario once per row.
  • This way, three business cases (active member, pending invitation, former member) are expressed in just a few lines and can be seen at a glance. The third row came up when Sara asked what happens to the tasks of someone who leaves the team.

6.3. Example: A Reliable Reminder

Reminders were one of the complaints about version 1.0. María wanted the criteria to make clear what "reliable" means:

Feature: Reliable reminders on mobile

  Scenario: The reminder goes off even when the phone is offline
    Given Marta has the task "Send report" with a reminder today at 17:00
    And her phone synced the task before losing its connection at 16:00
    When it is 17:00
    Then Marta's phone shows the notification "Send report"

  Scenario: Changing the time on the web updates the phone
    Given Marta has the task "Send report" with a reminder at 17:00
    When Lucía changes the reminder to 18:00 on the web
    And Marta's phone syncs
    Then Marta's phone shows no notification at 17:00
    But it shows the notification "Send report" at 18:00
  • The first scenario turns "reliable" into something testable: the reminder works offline as long as the task was synced beforehand.
  • The second covers a sync case between devices, the kind of situation that caused the serious bug in version 1.0.
  • But works like And, but expresses contrast; it makes the scenario read better.

6.4. Rules vs. Gherkin

Aspect List of rules Gherkin
Speed of writing High Medium
Clarity for multi-step flows Medium High
Automation as tests Indirect Direct with BDD tools
Risk Ambiguity Too many scenarios, or scenarios that are too technical
Recommended for Simple stories Complex business rules, sync, permissions

Style tip: write scenarios in terms of behavior ("Lucía invites Jorge"), not the interface ("Lucía clicks the blue button in the top right corner"). Interface details change often and make scenarios brittle.

  1. Epics, Themes, and Stories

Not all backlog items are the same size. Three levels are commonly used to organize them (these are not part of Scrum either):

Level What it is Example in TaskMaster Teams
Theme A broad area of interest that groups related work "Team collaboration," "Reliability"
Epic A story too large for one Sprint, which will have to be split PB-10 "Reliable offline sync of shared lists"
Story An item that fits comfortably in one Sprint PB-04 "Assign a task to a team member"
flowchart TB
    T[Theme: Reliability] --> E1[Epic: Reliable offline sync]
    T --> E2[Epic: Reliable reminders]
    E1 --> H1[Story: view the list offline]
    E1 --> H2[Story: create tasks offline]
    E1 --> H3[Story: resolve edit conflicts]
    E2 --> H4[Story: local reminder while offline]
  • The diagram shows the hierarchy: a theme groups epics, and each epic is split into stories.
  • The stories in the sync epic were obtained by applying the techniques in the next section.

  1. How to Split Stories

Splitting well is probably the most important refinement skill. Small stories mean faster feedback, less risk, and more flexibility for the Product Owner.

8.1. Vertical vs. Horizontal Slices

The golden rule is to split into vertical slices: each story cuts through all the layers (interface, logic, data) and delivers something usable, however small. The alternative, splitting by technical layer (horizontal slices), produces items that deliver no value on their own.

HORIZONTAL SPLIT (avoid)                VERTICAL SPLIT (prefer)
---------------------------------       ---------------------------------
1. Comments database                    1. Write a text comment
2. Comments API                            on a task (web)
3. Comments web screen                  2. View comments on mobile
4. Comments mobile screen               3. Mention a teammate with @
                                        4. Edit or delete your own comment
Nothing is usable until step 4.         Each number is usable on its own.
  • In the left column, the first three stories cannot be shown at a Sprint Review: there is nothing a user can use. This is the same problem as the component teams we saw in Scrum Roles.
  • In the right column, after story 1 the beta customers can already comment on tasks, and their feedback may change the order of the rest.

8.2. Splitting Techniques

Technique Idea Example in TaskMaster Teams
By workflow steps Each step in the user's journey is a story Invite → accept invitation → create an account from the invitation
By business rules The basic case first; the rules in separate stories Invite without limits; then, the 10-member limit; then, expiration
By data Start with one data type or a limited volume Text-only comments; then, with attached images
Happy path vs. errors The normal path first, then the failures Sync without conflicts; then, resolve edit conflicts
By interface or platform One platform first Shared list on the web (Sprint 1); then, on mobile
By operations Create, read, update, and delete separately View the list offline; then, create tasks offline

8.3. SPIDR

Mike Cohn suggests remembering five techniques with the acronym SPIDR:

  • Spike: a time-boxed investigation to reduce uncertainty before splitting (PB-07 on reminders on Android).
  • Paths: different paths through the workflow; for example, joining a space with an existing account or by creating a new one.
  • Interfaces: different interfaces or platforms; web first, mobile later.
  • Data: different types or subsets of data; text comments before attachments.
  • Rules: different business rules; the member limit as a separate story.

8.4. Applying It: Splitting the Offline Sync Epic

In the Sprint 1 refinement session, the team split PB-10 like this:

PB-10 Reliable offline sync of shared lists (epic, XL)

  PB-10a View the shared list offline (read-only)                       [operations]
  PB-10b Create and complete tasks offline; uploaded on reconnecting    [operations]
  PB-10c Show the user which changes are waiting to be uploaded         [error case]
  PB-10d Resolve conflicts when two people edit the same task           [rules]
  PB-10e Offline sync on the web                                        [interface]
  • Each line is a vertical slice: after PB-10a, a team member can already check their tasks on the subway with no signal.
  • The splitting technique used is shown in square brackets.
  • PB-10d (conflicts) is the riskiest part. Separating it lets María decide whether to tackle it early, to reduce risk, or later. That ordering decision is a matter of prioritization, which is covered in Backlog Prioritization and Value Management.

  1. Story Mapping: An Introduction

A backlog is a one-dimensional list, and it can sometimes be hard to see the user's complete journey in it. Story mapping, popularized by Jeff Patton, organizes stories in two dimensions:

  • Horizontal: the user's activities in the order in which they carry them out (the "backbone" of the map).
  • Vertical: the stories for each activity, from the essential (top) to the nice-to-have (bottom).
  • Horizontal lines are drawn to separate releases: everything above the first line is the minimum version that lets the user complete the journey from start to finish.

The team built this first map with sticky notes on a wall, transcribed here as a table:

Organize the team Divide up the work Do the work Track progress
Release 1 Create space · Invite members Assign task Shared list on web and mobile See each member's tasks
Release 2 Administrator and member roles Notification on assignment Comments · Reliable reminders Filter by status
Release 3 Remove a member or leave the space Shared due dates Full offline work Activity dashboard

How to read the map:

  • The first row (Release 1) is a complete, if minimal, journey: a team can organize itself, divide up the work, do it, and see how it is going. This is what Jeff Patton calls a "walking skeleton."
  • Reading the map from left to right tells the user's story; reading it from top to bottom shows how each activity is enriched.
  • The map helps avoid a typical mistake: completing one activity 100% (for example, invitations with every variant) while the others do not exist yet.
  • The map does not replace the Product Backlog: it is a tool for thinking and for talking with stakeholders. María uses it to explain to Elena Campos what each release will include.

  1. The Definition of Ready and Its Risks

Many teams create a Definition of Ready: conditions an item must meet before it can be brought into Sprint Planning. It is not part of the Scrum Guide; the guide only says that an item is ready for selection when the team can get it done within one Sprint.

This is the one the TaskMaster Teams team adopted, deliberately short:

## Definition of Ready (guideline) - TaskMaster Teams

An item is ready for Sprint Planning when:
- [ ] It is clear who it is for and why (the "so that" is clear).
- [ ] It has acceptance criteria agreed with María.
- [ ] The Developers believe it fits comfortably in one Sprint.
- [ ] Known external dependencies have been identified.

This is a guide for the conversation, NOT a gate: María and the Developers
can agree to include an item that does not fully meet it.
  • The checkboxes serve as a checklist in refinement sessions.
  • The closing note is the most important part, and it addresses the risks described below.

Risks of a misused Definition of Ready:

Risk What happens How to avoid it
It becomes a phase gate The Developers reject items "because they're not ready," and the team slides back into handing off requirements Use it as a guide, not as a contract
It demands too much detail Finished designs and complete specifications are required before starting Keep it short; the detail emerges in conversation
It shifts accountability "If it fails, it's because the PO didn't get it ready" Remember that refinement is the whole team's work
Mini-waterfall Complete analysis in one Sprint, development in the next Refine just in time, not Sprints in advance

Common Mistakes and Tips

  • Thinking user stories are mandatory in Scrum. They are a complementary practice; a team can use other formats.
  • Technical stories in disguise. "As a developer, I want to refactor the sync module" is not a user story. If the work is necessary, treat it as a technical improvement and explain why it matters (for example, to reduce sync errors).
  • Leaving out the "so that." Without the why, the team cannot propose simpler solutions.
  • Acceptance criteria that describe the interface. "The button is blue and sits in the top right corner" is design, not behavior.
  • Splitting by technical layer. If a story cannot be shown to a user at the Review, it is probably a horizontal slice.
  • Writing all the stories up front. That would be the 120-page document in another format. Only write in detail what will be tackled soon.
  • Tip: when you do not know how to split a story, ask: "What is the smallest version of this that a user could use and give feedback on?"

Exercises

Exercise 1: Improve the Stories

Rewrite these stories so that they follow the format and meet INVEST. State what was wrong with each one:

  1. "As a user, I want a push notification system with Firebase."
  2. "As a team member, I want to see my tasks."
  3. "Create endpoint /api/spaces/{id}/members."

Exercise 2: Write Gherkin Scenarios

For the story "As a team member, I want to mark a shared task as completed so that everyone else knows they no longer need to deal with it," write at least two Gherkin scenarios: the normal case and one in which someone else completes the task while you were viewing it offline.

Exercise 3: Split an Epic

Split the epic PB-14 "Team activity dashboard" (a dashboard where the coordinator sees what has happened in the space) into at least four vertical slices. State the splitting technique used for each one.

Solutions

Exercise 1

  1. What was wrong: a generic user, it describes a technical solution (it is not negotiable), and the benefit is missing. A possible version: "As a team member, I want to be notified on my phone when a task is assigned to me so that I can plan my day without having to open the app every few minutes."
  2. What was wrong: far too vague, no benefit, hard to test. A possible version: "As a team member, I want to see the tasks assigned to me in the space in a single list so that I know what I need to do today," with criteria such as "only tasks assigned to me appear" and "completed tasks are hidden by default."
  3. What was wrong: it is a technical task, not a story; it delivers no value on its own. A possible version: "As a team coordinator, I want to see who belongs to the space so that I know whom I can assign tasks to." The endpoint will be one of the tasks in the Sprint Backlog.

Exercise 2

Feature: Complete a shared task

  Background:
    Given Marta and Lucía are members of the space "Marketing Team"
    And the pending task "Review brochure" exists in that space

  Scenario: Complete a task
    When Marta marks "Review brochure" as completed
    Then Lucía sees "Review brochure" as completed by Marta

  Scenario: Someone else completes the task while I am offline
    Given Marta's phone is offline
    When Lucía marks "Review brochure" as completed
    And Marta's phone gets its connection back
    Then Marta sees "Review brochure" as completed by Lucía

Check that your scenarios use concrete data, one behavior per scenario, and business language. A typical mistake: writing interface steps ("When Marta taps the green checkbox") or mixing several behaviors in the same scenario.

Exercise 3

One possible split:

  1. See a chronological list of tasks created and completed in the last 7 days (by data: only two event types and one period).
  2. Include assignments and comments in the list (by data: more event types).
  3. Filter activity by member (by operations).
  4. View the dashboard in the mobile app (by interface).
  5. Receive a weekly summary by email (by paths: another way of accessing the same information).

Each slice is usable on its own; after the first one, the coordinator can already say whether the dashboard is useful to her, and perhaps the rest will not be needed.

Conclusion

User stories are a complementary practice, not part of Scrum, but they go a long way toward keeping Product Backlog items focused on people and their why. They are written in the "As a… I want… so that…" format, understood as Card, Conversation, and Confirmation, and their quality is checked with INVEST. Acceptance criteria make the confirmation concrete, either as a list of rules or as Gherkin scenarios with Given, When, and Then that can be automated. Epics are split into vertical slices with techniques such as SPIDR, and story mapping helps you see the user's complete journey and define releases. The Definition of Ready can help, as long as it does not become a gate that sends the team back to waterfall.

You now know all the pieces of Scrum: its foundation, its accountabilities, its events, its artifacts, and how to write good backlog items. In the last lesson of the module, Implementing Scrum in Projects, we will see how the TaskMaster Teams team put them together to get started and what happened in its first three Sprints.

© Copyright 2026. All rights reserved