Learn to Write Better User Stories
What are user stories?
A user story is a placeholder for a conversation, a phrase or two used by Agile software development teams to describe valuable functionality that they intend to work on.
The user story is a means of communication (and a trigger for further communication).
User stories are a means of succinctly communicating the functional need of software. They are a shorthand, high level means of describing software requirements. They are used on Agile software work and are designed to be a stimulus for a conversation. They are often the only written form of the requirements.
A user story is written by someone to describe functionality and value that the team is expected to deliver. When we write a user story, we are both acquiring and sharing knowledge.
Quality user stories are essential to a successful software project
No substantial software project will be delivered on time and on budget if it starts with poor quality requirements or user stories.
Creating high quality stories is hard
The wonders of the English language give us many ways of expressing the same thing. This flexibility leads to potential differences in understanding. We have seen stories as little as two words and as much as a page of text. Generally, shorter is better, but be careful not to miss out critical functionality.
Who Writes Them
Ideally the author of the user stories is a product owner who has extensive experience in the role of the customer or end user. Sometimes this is not practical and the author is a proxy for the end user, typically a Business Analyst (BA). The BA creates the first edition of the story, which is later discussed and refined by the team. Once there is a common understanding of what it really means. It can then go forward to be worked on.
Better user stories will avoid bugs.
Many software teams do not appreciate just how important it is to work from good quality requirements or user stories. Commonly 20% or more of all quality problems with software are caused by problems with requirements.
Start with the “Who, What and Why”
The functional need and business justification are the most fundamental aspects of good user stories. By this we mean “Who, needs to do What and Why”. Who is the user (human or connected system), what is the data handled and moved, and why is what follows the “so that” in a user story. Focus on these and avoid the how (exclude design statements).
Better user stories – with automated analysis
The quality of user stories has been ill-served by automation. In fact, prior to our release of ScopeMaster, we have been unaware of any tools that can help you improve the quality of your user stories. There are a few products on the market now that approach some of the functionality of ScopeMaster, but none come close to offering such a comprehensive and valuable automated analysis of user stories for QA, estimation and test generation.
Realtime requirements testing and improvement suggestions
ScopeMaster performs realtime analysis, testing, correlation and sizing from the text of user stories. The feedback provided by ScopeMaster will help you improve the wording you use. You’ll achieve, clearer, more concise, complete, consistent requirements. Focus first on Who and What. ScopeMaster generates and runs both static and dynamic tests against each user story, that will help find and warn you of potential problems. It performs a level of automated requirements scrutiny that has hitherto been unavailable in the software industry.
Not only does ScopeMaster examine and analyse the language of each story, but it also cross references every story against all of the others – and detects inconsistencies, omissions and duplicates, that you can then use to refine your requirements. The smart interface of ScopeMaster dynamically identifies missing stories and makes it even easer to add them.
Handling Infinite Possibilities
ScopeMaster overcomes the vast range of possible expressions of requirements by using a form of Artificial Intelligence know as Natural Language Processing. This allows you to express your user stories in terms specific to your industry; the tool requires no prior training.
Create better user stories faster
ScopeMaster scans user stories (or software requirements) for appropriate language that will help you write clearer, concise, consistent, complete and unambiguous stories.
Detects potential defects
INVEST – is a commonly used checklist for agile user story quality.
- Independent *
- Negotiable / Concise *
- Estimable *
- Sized *
- Testable *
*ScopeMaster helps the author find and fix these problems (over 50% of all requirements defects).
Our own preferred, more comprehensive checklist for writing better usr stories is this:
- Unambiguous / clear *
- Measurable / Functional *
- Concise *
- User oriented *
- Testable *
- Consistent *
- Whole and complete *
- Unique *
- Design Free *
- Traceable to business value
ScopeMaster helps with 9 out 10 of these quality criteria to some extent, and overall it will help you find over 50% of potential requirements defects, pre-coding.
In our own tests on over 90,000 user stories gathered from over 70 sources, we found that ScopeMaster exposes 0.3 -0.7 defects per CFP (excluding inconsistencies, which we expose but cannot calculate), whilst the typical observed in industry is just under 1 defect per FP (Capers Jones). There we have it, real data showing that ScopeMaster can help you write better user stories.
By using ScopeMaster interactively at the beginning of your project to improve your user stories, you can put your software work onto a more solid quality foundation right from the start – before design and coding is underway. You can continue to refine the stories throughout the development process. The great thing is that you will have avoided rework by starting with a better foundation of quality user stories.