Capstone: Pila 1.2 · lesson 2 of 9
Ideas in this lesson
AAs a… I want… so that…3.3: user stories
BGiven… when… then…3.4: acceptance criteria
CNon-functional3.6: speed, privacy, access
DIssuesone per story, on the board

Requirements

Last updated

You're the analyst now. Ate Cora has agreed to a half-hour interview about the vaccination reminders. In this lesson you'll read the interview, pull out what mothers and health workers need, write it as user stories with acceptance criteria, add the requirements that aren't features, put them in order, and enter them as issues on your board.

By the end of this lesson you can

  • Turn an interview into user stories with testable acceptance criteria
  • Write the non-functional requirements a feature needs
  • Prioritise the stories, and track them as issues

The interview

You talk with Ate Cora, the midwife at San Roque health centre, in the afternoon after the clinic closes. Here's what she said, from your notes:

Interview with Ate Cora, San Roque health centre
You askedAte Cora said
What’s the problem?“Mothers forget. A baby misses a vaccine, then the next one is late too. Last month eleven babies missed an appointment. We phone some mothers the day before, when we have time. We don’t often have time.”
When should they hear?“The day before. Earlier and they forget again; on the day is too late to arrange the trip.”
What should the text say?“Which vaccine, when, and which health centre. Not the baby’s name: many families share one phone, and some mothers don’t want the whole house to know their business.”
When are vaccines given?“Monday to Friday. Monday is our big vaccination day; the doctor comes on Mondays.”
Would anyone not want the texts?“Some. They should be able to say no at the counter, and stop them later without coming in.”
How do you know which babies are due?“The schedule card. When a mother comes in, I can enter the next date into Pila, if she agrees.”
Anything else?“Kap. Ernesto’s data officer told us not to keep things we don’t need. And the texts in Filipino would be nice, but most mothers read English texts fine.”

Read it twice, as lesson 3.2 suggested. Some needs are said directly; some you'll have to notice.

Write the stories

Write three stories from the interview, each with acceptance criteria (lessons 3.3 and 3.4). Make each criterion something a tester could check with a yes or no.

Vaccination reminders: storiesKept in this browser only
  • As a… I want… so that… (not yet)
  • At least two Given / When / Then criteria (not yet)
  • Says when the text is sent (not yet)
  • Keeps names out of the text (not yet)
  • As a… I want… so that… (not yet)
  • Mentions STOP (not yet)
  • At least one Given / When / Then (not yet)
  • Says who (not yet)
  • Says how long (not yet)
  • At least one Given / When / Then (not yet)
Write each part until its checks pass.

What isn’t a feature

Some requirements describe how well Pila must do its job, not what it does (lesson 3.6). Pull them out of the interview:

Vaccination reminders: non-functionalKept in this browser only
  • At least three (not yet)
  • A time or a number (not yet)
  • Consent or agreement (not yet)
  • Who can see the data (not yet)
Write each part until its checks pass.

Put them in order

Four pieces of work came out of the interview, counting Filipino texts. Put them in the order the team should build them: most value and least risk first (lesson 3.8).

  1. 1 Forget reminders 30 days after the vaccine
  2. 2 A text the day before the vaccine
  3. 3 Reminders in Filipino as well as English
  4. 4 Text STOP to stop reminders

Why does forgetting old reminders come before Filipino texts, when mothers will never see it?

Stories as issues

Each story becomes an issue, a tracked item of work:

  • On GitHub: open Issues, then New issue, for each story. Title it with the story's short name, such as “Reminder the day before”, and paste the story and criteria in the body. Add each to your project board, in Backlog, in your order. Note each issue's number, such as #1: commits and pull requests will refer to it.
  • Without GitHub: add each story as a section in docs/stories.md, numbered, and a line for each under Backlog in docs/board.md.

Commit your stories file either way. Here's the reference's, with its issue numbers:

How the reference does it docs/stories.md, lines 1–20
# Vaccination reminders: the stories

Written from the interview with Ate Cora in C.2. Each story is an issue on the project board.

## #50 Reminder the day before

As a mother whose baby is due a vaccine, I want a text the day before, so that I don't miss the appointment.

- Given a baby due a vaccine on Tuesday, when the reminder job runs on Monday, then the mother's phone gets one text saying the vaccine, the day and the health centre.
- Given a vaccine due on Wednesday, when the job runs on Monday, then no text is sent for it yet.
- Given the text is read by someone else on a shared phone, then it contains no names.

## #51 Stop the reminders

As a mother who doesn't want reminders, I want to text STOP, so that they stop without visiting the health centre.

- Given a phone with reminders, when it texts STOP, then no more reminders are sent to it, and the reply says how to start them again.
- Given a phone with no reminders, when it texts STOP, then the reply says there was nothing to stop.

## #52 Forget old reminders

Check your requirements

Ate Cora said families share phones. Which requirement came from that?
Which acceptance criterion is testable?

Sources

Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.

All sources for Simple Software Development