Section650

Writing

TopicDelivery
Reading9 min

How to Write User Stories Without Making Everyone Guess

A user story should make the user’s need and expected outcome clear to product, design, frontend, backend and QA. How I use the 5Ws, acceptance criteria and linked tasks, with one worked example.

By Ka Lun Chan · Engineering leadership · Delivery / Leadership

What should a user story do?

A user story should make the user’s need and the expected outcome clear enough that product, design, frontend, backend and QA picture the same result. The work to deliver it can be split into separate design, frontend and backend items, but those items should stay linked to one shared outcome that the team verifies together.

Small stories help when each one still describes something meaningful and testable. Splitting work into tiny tickets can create more confusion than it removes if nobody can see the workflow they belong to anymore.

I spend a lot of my time helping translate requirements into development work, and I want a team to understand the work before it commits to it. This is how I approach the story itself, with one illustrative example carried all the way through.

Why do user stories still leave people guessing?

I see two failures most often. Some stories read like essays and still leave developers guessing, because the requirement is buried under screen details and implementation notes. Others are so brief that product, design, developers and QA each read something different into the same sentence.

Both usually come from the same place. People write stories from the perspective of their own role, which is natural, and the context they carry in their heads doesn’t make it onto the page. The missing piece is often the workflow: where this action sits, what comes before it and what has to be true for it to work. When that context is missing, the questions still come. They just arrive late, during development or review, when answering them costs more. I went into why this is hard in why writing a good user story is so hard. This post is about what to put on the page.

How do the 5Ws give everyone the same context?

Who, What, Why, When and Where establish the context a story needs: who the user is and who may act, what they accomplish, why it matters, what triggers it and where it happens in the workflow. Acceptance criteria then define the observable behavior that proves the result.

Fig. 734-1 The 5Ws, with the invitation example
QuestionWhat the story should explainExample
Who?Who needs this, and who is allowed to perform the action?The application owner. Only the owner can send invitations (assumption).
What?What should the user be able to accomplish?Invite a teammate by email so they can edit the application.
Why?What problem does this solve, and why does it matter?Owners can’t always answer every section themselves, and the alternative is sharing a login or copying answers between people.
When?What triggers the action, and what conditions must be met?The owner needs help with a draft. Submitted applications can’t take new collaborators (assumption).
Where?Where does this happen in the user’s workflow or product?From the Collaborators panel on the application overview, before review and submission.

The two parts do different jobs. The 5Ws let someone in any role understand the situation without a meeting. Acceptance criteria let QA and product check the result without interpreting it. A story with criteria and no context gets built correctly in the wrong place. A story with context and no criteria gets argued about at review.

Neither should turn into a questionnaire pasted into every ticket. For a small change, the 5Ws might be two sentences, and some answers will be obvious from the title. I use them to check that the story answers what people will ask.

What is the difference between a user story and a task?

A user story describes an outcome a user can see and someone can verify. A task describes work the team does to deliver it, such as a design, an API endpoint or a page component. Tasks are useful for planning, and finishing one doesn’t give a user anything on its own.

That distinction matters most when teams split work by role, which is the next question.

Should product, design, frontend and backend stories be separate?

Usually not as separate user stories. I recommend one story for the shared user outcome, with linked design, frontend, backend and testing tasks where they help. Separate stories make sense when they describe distinct outcomes that can each be verified on their own.

A design task and a backend task can each be finished, reviewed and closed, and the user still can’t do anything until both are joined up. If those pieces are written as independent stories, each one tends to restate the requirements in its own words. That’s where the coordination risk comes from. The design ticket says an invitation lasts seven days, the backend ticket says fourteen, and nobody notices until QA tests the whole flow.

Linking the tasks to one story keeps a single place where the behavior is defined. The tasks describe how each role contributes, and they point back to the acceptance criteria instead of copying them. When a task turns up something that would change the behavior, the story changes first, so everyone sees it.

Teams use different structures for this: subtasks, linked issues, a checklist in the story, or a design file attached to an epic. I don’t think the label matters much. What matters is that anyone picking up one piece can find the shared outcome and see how their piece fits.

How small should a user story be?

Small enough that the team can understand, estimate, implement, review and test it within its normal delivery cycle, and complete enough to demonstrate behavior a user would recognize. There’s no universal size or word count.

Short text doesn’t mean small scope. “Users can invite people” is one line, and it hides permissions, roles, email delivery, expiry, accepting the invitation and removing someone later. A story can be brief and still be one of the largest pieces of work on the board.

Splitting by layer goes wrong in the other direction. “Build the invitation API” and “build the invite page” are useful tasks. They aren’t independent user stories, because neither one can be demonstrated or verified as an outcome without the other.

The split I reach for first is by workflow step or by scenario, keeping the workflow visible across the pieces. Sending an invitation and accepting one are different steps, done by different people, and each can be checked on its own. Each split story should still say where it sits in the larger flow. I made the broader case for smaller work in smaller user stories and pull requests.

What belongs in the story?

  • The 5Ws, as briefly as they can be stated.
  • The business rules and permissions that change behavior.
  • Acceptance criteria, including the failure cases that matter to the user or the business.
  • Links to the workflow and the current design.
  • Dependencies and unresolved decisions that could stop implementation, each with someone responsible for answering it.

Detailed technical implementation usually reads better in the linked tasks. The story stays readable for everyone, and engineers still have a place for the detail they need.

Some UX problems only become clear when someone walks through the flow. Linking the workflow and design gives that walkthrough something concrete to check against, ideally before anything is built, which is the idea behind prototyping and validating first. Simpler workflows help at every stage. They’re easier for users, faster to develop and easier to test, and if the 5Ws for a story are hard to write, the workflow is often more complicated than it needs to be.

Worked example: inviting a teammate to an application

This scenario is illustrative, and the business rules in it are assumptions chosen for the example. An application owner, someone filling in a multi-section application online, wants a teammate to help complete it.

A vague story

Story
As a user, I want to invite people so we can collaborate.

Which user? Invite them to what, with what access? Can a collaborator invite more people? What happens if the person was already invited, or never responds? Product, design, the developers and QA will each answer those differently, and the differences will show up at review.

An overly detailed story

Story (excerpt)
Add a Collaborators tab next to Documents on the application page. Use the secondary button style and open a 480px modal with an email field and a role dropdown (Editor, Viewer, Admin; hide Admin for now). On submit, POST to /applications/{id}/invitations. Store id, application_id, email, role, token, created_at and expires_at, generate a random token, and queue the email with three retries. Close the modal and show a toast. We should also think about reminder emails, SSO users, audit logging, rate limits and team-level invitations later.

A lot of effort went into this, and the requirement is still buried. It never says who is allowed to invite, what happens when an address already has an invitation, or why the owner needs this at all. The “think about later” items read like scope, so nobody knows whether they’re in or out.

A clearer story using the 5Ws

Story
Application owner invites a teammate to help complete a draft application

As the owner of an application, I want to invite a teammate by email so they can help me complete sections I can't answer on my own.

Who: The application owner. Only the owner can send invitations.
What: Send an invitation that gives the teammate edit access to this application.
Why: Owners can't always answer every section themselves. Without invitations, the workarounds are sharing a login or copying answers between people.
When: While the application is a draft. Submitted applications can't take new collaborators.
Where: The Collaborators panel on the application overview. Links: workflow map, current design.

Business rules (assumptions):
- Collaborators can edit answers but can't submit the application or invite others.
- Invitations expire after seven days.
- One pending invitation per email address per application.

Open decision: can the owner remove a collaborator in this release? Owner: product.
Not in this story: accepting an invitation (linked story).

Acceptance criteria

  1. Given I own a draft application, when I invite a valid email address, then the teammate receives an invitation email and appears in the Collaborators panel as pending.
  2. Given I’m a collaborator and not the owner, when I open the Collaborators panel, then I can see who has access but I can’t send invitations.
  3. Given a pending invitation already exists for that address, when I invite it again, then no second invitation is created and I can resend the existing one.
  4. Given the application has been submitted, when I open the Collaborators panel, then the invite option is unavailable and the panel explains why.

The criteria cover the permission rule and the duplicate case because both change what the user sees. They don’t say which table stores the invitation or how the email is queued. That belongs in the backend task.

Linked tasks

Fig. 734-2 One shared story, linked tasks, one verificationEach task points back to the acceptance criteria it helps satisfy.

Shared story and acceptance criteria: the owner invites a teammate

  • Design taskInvite dialog, pending state in the Collaborators panel, duplicate and error messagesCriteria 1 to 4
  • Frontend taskInvite form and email validation, pending list with resend, unavailable state after submissionCriteria 1 to 4
  • Backend taskInvitation record with expiry, owner-only and draft-only checks, duplicate check, invitation emailCriteria 1 to 4

QA and product verify the shared outcome against the criteria

A task that would change the behavior updates the shared story first.

Each task links to the story and names the criteria it supports, so a reviewer can see quickly whether the pieces add up to the outcome. Testing work can be its own linked task when the team works that way. Either way, the story isn’t done until the criteria pass on the joined-up feature.

Splitting sending from accepting

Accepting is a separate step, done by a different person, with its own outcome, so it gets its own story:

Linked story
As an invited teammate, I want to accept an invitation so I can work on the application I was asked to help with.
  1. Given a pending invitation that hasn’t expired, when I accept it while signed in with the invited email address, then I can open and edit the application, and the owner sees me as a collaborator.
  2. Given an invitation older than seven days, when I open the link, then I see that it has expired and how to ask the owner for a new one.
  3. Given I’m signed in with a different email address, when I open the link, then I’m asked to sign in with the invited address before I can accept.

Each story can be built, reviewed and verified on its own, and both still read as part of one workflow. I’d usually release them together, or keep sending behind a feature flag until accepting works, because an invitation nobody can accept shouldn’t reach users.

Is the story ready for development?

Before a story goes into a sprint, I run through four quick checks:

  • Could someone from another role answer each of the 5Ws from the story alone?
  • Does every acceptance criterion describe behavior someone can observe, including the failure cases that matter?
  • Does each linked task trace back to a criterion, and does any task describe behavior the story doesn’t?
  • Is every open decision named, with someone responsible for answering it?

If a check fails, a short conversation usually fixes it. That’s much cheaper before development than during it.

Short answers

What is the difference between a user story and a task?

A user story describes an outcome a user can see and someone can verify. A task describes work the team does to deliver it, such as a design, an API endpoint or a page component. Tasks are useful for planning, and finishing one doesn’t give a user anything on its own.

Should product, design, frontend and backend stories be separate?

Usually not as separate user stories. Write one story for the shared user outcome, with linked design, frontend, backend and testing tasks where they help. Separate stories make sense when they describe distinct outcomes that can each be verified on their own.

How small should a user story be?

Small enough that the team can understand, estimate, implement, review and test it within its normal delivery cycle, and complete enough to demonstrate behavior a user would recognize. There is no universal size or word count.

What are the 5Ws of a user story?

Who needs this and who may perform the action, what the user should accomplish, why it matters, when it happens and under what conditions, and where it happens in the workflow. The 5Ws set the context; acceptance criteria define the observable behavior that verifies the result.

One question before you commit

Can product, design, engineering and QA read this story and agree on what the user should be able to do? If they can, the work can be split across roles safely. If they can’t, that’s the conversation to have now.

How I lead engineering teams