User story explained
In software development and product management, a user story is an informal, natural language description of features of a software system. They are written from the perspective of an end user or user of a system, and may be recorded on index cards, Post-it notes, or digitally in specific management software.[1] Depending on the product, user stories may be written by different stakeholders like client, user, manager, or development team.
User stories are a type of boundary object. They facilitate sensemaking and communication; and may help software teams document their understanding of the system and its context.[2]
History
- 1997: Kent Beck introduces user stories at the Chrysler C3 project in Detroit.
- 1998: Alistair Cockburn visited the C3 project and coined the phrase "A user story is a promise for a conversation."[3]
- 1999: Kent Beck published the first edition of the book Extreme Programming Explained, introducing Extreme Programming (XP),[4] and the usage of user stories in the planning game.
- 2001: Ron Jeffries proposed a "Three Cs" formula for user story creation:[5]
- The Card (or often a post-it note) is a tangible physical token to hold the concepts;
- The Conversation is between the stakeholders (customers, users, developers, testers, etc.). It is verbal and often supplemented by documentation;
- The Confirmation ensures that the objectives of the conversation have been reached.
- 2001: The XP team at Connextra[6] in London devised the user story format and shared examples with others.
- 2004: Mike Cohn generalized the principles of user stories beyond the usage of cards in his book User Stories Applied: For Agile Software Development[7] that is now considered the standard reference for the topic according to Martin Fowler.[8] Cohn names Rachel Davies as the inventor of user stories. While Davies was a team member at Connextra she credits the team as a whole with the invention.
- 2014: After a first article in 2005[9] and a blog post in 2008,[10] in 2014 Jeff Patton published the user-story mapping technique, which intends to improve with a systematic approach the identification of user stories and to structure the stories to give better visibility to their interdependence.[11]
Principle
User stories are written by or for users or customers to influence the functionality of the system being developed. In some teams, the product manager (or product owner in Scrum), is primarily responsible for formulating user stories and organizing them into a product backlog. In other teams, anyone can write a user story. User stories can be developed through discussion with stakeholders, based on personas or are simply made up.
Common templates
User stories may follow one of several formats or templates.
The most common is the Connextra template, stated below.[12] Mike Cohn suggested the "so that" clause is optional although still often helpful.[13]
As a I can , so that
Chris Matts suggested that "hunting the value" was the first step in successfully delivering software, and proposed this alternative:[14]
In order to as a , I can
Another template based on the Five Ws specifies:[15]
As , I want because
A template that's commonly used to improve security is called the "Evil User Story" or "Abuse User Story" and is used as a way to think like a hacker in order to consider scenarios that might occur in a cyber-attack. These stories are written from the perspective of an attacker attempting to compromise or damage the application, rather the typical personae found in a user story:[16]
As a disgruntled employee, I want to wipe out the user database to hurt the company
Examples
- Screening quiz (epic story): As the HR manager, I want to create a screening quiz so that I can understand whether I want to send possible recruits to the functional manager.[17]
- Quiz recall: As a manager, I want to browse my existing quizzes so I can recall what I have in place and figure out if I can just reuse or update an existing quiz for the position I need now.
- Limited backup: As a user, I can indicate folders not to back up so that my backup drive is not filled up with things I do not need to be saved.
Usage
A central part of many agile development methodologies, such as in extreme programming's planning game, user stories describe what may be built in the software product. User stories are prioritized by the customer (or the product owner in Scrum) to indicate which are most important for the system and will be broken down into tasks and estimated by the developers. One way of estimating is via a Fibonacci scale.
When user stories are about to be implemented, the developers should have the possibility to talk to the customer about it. The short stories may bedifficult to interpret, may require some background knowledge or the requirements may have changed since the story was written.
User stories can be expanded to add detail based on these conversations. This can include notes, attachments and acceptance criteria.
Acceptance criteria
Mike Cohn defines acceptance criteria as "notes about what the story must do in order for the product owner to accept it as complete."[18] They define the boundaries of a user story and are used to confirm when a story is completed and working as intended.
The appropriate amount of information to be included in the acceptance criteria varies by team, program and project. Some may include 'predecessor criteria', "The user has already logged in and has already edited his information once".February 2020. Some may write the acceptance criteria in typical agile format, Given-When-Then. Others may simply use bullet points taken from original requirements gathered from customers or stakeholders.In order for a story to be considered done or complete, all acceptance criteria must be met.
Benefits
There is no good evidence that using user stories increases software success or developer productivity. However, user stories facilitate sensemaking without undue problem structuring, which is linked to success.[19]
Limitations
Limitations of user stories include:
- Scale-up problem: User stories written on small physical cards are hard to maintain, difficult to scale to large projects and troublesome for geographically distributed teams.
- Vague, informal and incomplete: User story cards are regarded as conversation starters. Being informal, they are open to many interpretations. Being brief, they do not state all of the details necessary to implement a feature. Stories are therefore inappropriate for reaching formal agreements or writing legal contracts.[20]
- Lack of non-functional requirements: User stories rarely include performance or non-functional requirement details, so non-functional tests (e.g. response time) may be overlooked.
- Don't necessarily represent how technology has to be built: Since user stories are often written from the business perspective, once a technical team begins to implement, it may find that technical constraints require effort which may be broader than the scope of an individual story. Sometimes splitting stories into smaller ones can help resolve this. Other times, 'technical-only' stories are most appropriate. These 'technical-only' stories may be challenged by the business stakeholders as not delivering value that can be demonstrated to customers/stakeholders.
Relationship to epics, themes and initiatives/programs
In many contexts, user stories are used and also summarized in groups for ontological, semantic and organizational reasons. Initiative is also referred to as Program in certain scaled agile frameworks. The different usages depend on the point-of-view, e.g. either looking from a user perspective as product owner in relation to features or a company perspective in relation to task organization.
While some suggest to use 'epic' and 'theme' as labels for any thinkable kind of grouping of user stories, organization management tends to use it for strong structuring and uniting work loads. For instance, Jira seems to use a hierarchically organized to-do-list, in which they named the first level of to-do-tasks 'user-story', the second level 'epics' (grouping of user stories) and the third level 'initiatives' (grouping of epics). However, initiatives are not always present in product management development and just add another level of granularity. In Jira, 'themes' exist (for tracking purposes) that allow to cross-relate and group items of different parts of the fixed hierarchy.[21] [22]
In this usage, Jira shifts the meaning of themes in an organization perspective: e.g how much time did we spent on developing theme "xyz". But another definition of themes is: a set of stories, epics, features etc for a user that forms a common semantic unit or goal. There is probably not a common definition because different approaches exist for different styles of product design and development. In this sense, some also suggest to not use any kind of hard groups and hierarchies.[23] [24] [25] [26] [27] [28]
Theme
Multiple epics or many very large stories that are closely related are summarized as themes. A common explanation of epics is also: so much work that requires many sprints, or in scaled frameworks -- a Release Train or Solution Train.
Initiative
Multiple themes, epics, or stories grouped together hierarchically.[29]
Epic
Multiple themes or stories grouped together by ontology and/or semantic relationship.
Story map
A story map[30] organises user stories according to a narrative flow that presents the big picture of the product. The technique was developed by Jeff Patton from 2005 to 2014 to address the risk of projects flooded with very detailed user stories that distract from realizing the product's main objectives.
User story mapping[31] uses workshops with users to identify first the main business activities. Each of these main activities may involve several kind of users or personas.
The horizontal cross-cutting narrative line is then drawn by identifying the main tasks of the individual user involved in these business activities. The line is kept throughout the project. More detailed user stories are gathered and collected as usual with the user story practice. But each new user story is either inserted into the narrative flow or related vertically to a main tasks.
The horizontal axis corresponds to the coverage of the product objectives, and the vertical axis to the needs of the individual users.
In this way it becomes possible to describe even large systems without losing the big picture.
Story maps can easily provide a two-dimensional graphical visualization of the product backlog: At the top of the map are the headings under which stories are grouped, usually referred to as 'epics' (big coarse-grained user stories), 'themes' (collections of related user stories[32]) or 'activities'. These are identified by orienting at the user’s workflow or "the order you'd explain the behavior of the system". Vertically, below the epics, the actual story cards are allocated and ordered by priority. The first horizontal row is a "walking skeleton"[33] and below that represents increasing sophistication.[34]
User journey map
A user journey map[35] intends to show the big picture but for a single user category. Its narrative line focuses on the chronology of phases and actions that a single user has to perform in order to achieve his or her objectives.
This allows to map the user experience beyond a set of user stories. Based on user feedback, the positive and negative emotions can be identified across the journey. Points of friction or unfulfilled needs can be identified on the map. This technique is used to improve the design of a product,[36] allowing to engage users in participatory approaches.[37]
Comparing with use cases
A use case has been described as "a generalized description of a set of interactions between the system and one or more actors, where an actor is either a user or another system."[38] While user stories and use cases have some similarities, there are several differences between them.
| User Stories | Use Cases |
---|
Similarities | - Generally formulated in users' everyday language. They should help the reader understand what the software should accomplish.
| - Written in users' everyday business language, to facilitate stakeholder communications.
|
Differences | - Provide a small-scale and easy-to-use presentation of information, with little detail, thus remaining open to interpretation, through conversations with on-site customers.
| - Use cases organize requirements to form a narrative of how users relate to and use a system. Hence they focus on user goals and how interacting with a system satisfies the goals.[39]
- Use case flows describe sequences of interactions, and may be worded in terms of a formal model. A use case is intended to provide sufficient detail for it to be understood on its own.
|
Template | As a , I can so that .[40] | - Title: "goal the use case is trying to satisfy"
- Main Success Scenario: numbered list of steps
- Step: "a simple statement of the interaction between the actor and a system"
- Extensions: separately numbered lists, one per Extension
- Extension: "a condition that results in different interactions from .. the main success scenario". An extension from main step 3 is numbered 3a, etc.
| |
Kent Beck, Alistair Cockburn, Martin Fowler and others discussed this topic further on the c2.com wiki (the home of extreme programming).[41]
See also
Further reading
- Daniel H. Steinberg, Daniel W. Palmer, Extreme Software Engineering, Pearson Education, Inc., .
- Mike Cohn, User Stories Applied, 2004, Addison Wesley, .
- Mike Cohn, Agile Estimating and Planning, 2006, Prentice Hall, .
- Business Analyst Time
- Payton Consulting 'How user stories are different from IEEE requirements
Notes and References
- Dimitrijević. Sonja. Jovanović. Jelena. Devedžić. Vladan. 2015. A comparative study of software tools for user story management. Information and Software Technology. en. 57. 352–368. 10.1016/j.infsof.2014.05.012. a great number of software tools that provide, inter alia, support for practices based on user stories have emerged in recent years..
- Ralph . Paul . 2015 . The Sensemaking-coevolution-implementation theory of software design . Science of Computer Programming . 101 . 21–41 . 1302.4061 . 10.1016/j.scico.2014.11.007. 6154223 .
- Web site: Origin of story card is a promise for a conversation : Alistair.Cockburn.us . alistair.cockburn.us . 16 August 2017 . 22 June 2021 . https://web.archive.org/web/20210622215759/https://alistair.cockburn.us/coming-soon/ . dead .
- Book: Beck, Kent. Extreme Programming Explained: Embrace Change. Addison-Wesley. 1999. 9780201616415. 41834882. Kent Beck.
- Web site: Essential XP: Card, Conversation, Confirmation . Ron . Jeffries . 30 August 2001 . 14 April 2017 . 12 May 2017 . https://web.archive.org/web/20170512211534/http://ronjeffries.com/xprog/articles/expcardconversationconfirmation/ . live .
- Web site: User Story Template . agilealliance.org . 17 December 2015 . 18 April 2020 . 6 June 2020 . https://web.archive.org/web/20200606161737/https://www.agilealliance.org/glossary/user-story-template/ . live .
- Book: Cohn, Mike . User Stories Applied: For Agile Software Development . 2004 . Addison-Wesley . 0321205685 . 54365622.
- Web site: User Story . Fowler . Martin . 22 April 2013 . martinfowler.com . 14 July 2019 . 14 July 2019 . https://web.archive.org/web/20190714210315/https://martinfowler.com/bliki/UserStory.html . live .
- Patton . Jeff . January 2005 . It's All In How You Slice It . Better Software Magazine . 16–22, 40 . 16 July 2019 . 16 July 2019 . https://web.archive.org/web/20190716193104/https://www.stickyminds.com/better-software-magazine-volume-issue/2005-01 . live .
- Web site: The New User Story Backlog is a Map . Patton . Jeff . 8 October 2008 . Jeff Patton & Associates . 16 July 2019 . 18 July 2019 . https://web.archive.org/web/20190718153846/https://www.jpattonassociates.com/the-new-backlog/ . live .
- Book: Patton, Jeff . User story mapping . Economy, Peter, Fowler, Martin, Cooper, Alan, Cagan, Marty . 2014 . 9781491904909 . First . Beijing . 880566740.
- Web site: Glossary: User Story Template . agilealliance.org . . 3 February 2020 . Another name is the "Connextra format", in recognition of its origins . 17 December 2015 . 3 February 2020 . https://web.archive.org/web/20200203101132/https://www.agilealliance.org/glossary/user-story-template/ . live .
- Web site: Advantages of the "As a user, I want" user story template . Cohn . Mike . Mike Cohn . 25 April 2008 . Mountaingoatsoftware.com . live . https://web.archive.org/web/20161218210740/http://www.mountaingoatsoftware.com/blog/advantages-of-the-as-a-user-i-want-user-story-template . 18 December 2016 . 18 December 2016 . While I consider the so-that clause optional, I really like this template..
- Web site: Old Favourite: Feature Injection User Stories on a Business Value Theme . Marcano . Antony . 24 March 2011 . Antonymarcano.com . 23 February 2017 . 2 July 2012 . https://web.archive.org/web/20120702040122/http://antonymarcano.com/blog/2011/03/fi_stories/ . live .
- Web site: User Story . t2informatik GmbH . 25 September 2019 . 3 February 2020 . "As (who) (when) (where), I (want) because (why)." – this phrase is based on typical W questions: who, when, where, what and why. . 3 February 2020 . https://web.archive.org/web/20200203095858/https://t2informatik.de/en/smartpedia/user-story/ . live .
- Web site: SAMM Agile guidance . Van der Veer . Rob . . 18 May 2020 .
- Web site: Your Best Agile User Story . Cowan . Alexander . Cowan+ . 29 April 2016 . 25 March 2016 . https://web.archive.org/web/20160325215047/http://www.alexandercowan.com/best-agile-user-story/ . live .
- Web site: The Two Ways to Add Detail to User Stories . Cohn . Mike . Mountain Goat Software blog . 8 April 2019 . 8 April 2019 . https://web.archive.org/web/20190408062320/https://www.mountaingoatsoftware.com/blog/preview/1691 . live .
- Book: 2015 IEEE/ACM 5th International Workshop on the Twin Peaks of Requirements and Architecture . Ralph . Paul . Mohanani . Rahul . IEEE . 2015 . 978-1-4673-7100-1 . 20–23 . Is Requirements Engineering Inherently Counterproductive? . 10.1109/TwinPeaks.2015.12 . 2873385 .
- Web site: Limitations of user stories . 15 April 2008 . Ferolen.com . 9 April 2014 . 13 April 2014 . https://web.archive.org/web/20140413142352/http://www.ferolen.com/blog/limitations-of-user-stories/ . live .
- Web site: Epics, Themes, Stories, and Initiatives . Atlassian . 8 February 2019 . 30 January 2019 . https://web.archive.org/web/20190130231414/https://www.atlassian.com/agile/project-management/epics-stories-themes . live .
- Web site: User Stories . Atlassian . 8 February 2019 . 5 February 2019 . https://web.archive.org/web/20190205002630/https://www.atlassian.com/agile/project-management/user-stories . live .
- Web site: The Basics: Epics, Stories, Themes & Features . Britsch . Marcel . 5 September 2017 . The Digital Business Analyst . 8 February 2019 . 21 September 2017 . https://web.archive.org/web/20170921082050/https://thedigitalbusinessanalyst.co.uk/epics-stories-themes-and-features-4637712cff5c . live .
- Web site: User Stories, Epics and Themes . Cohn . Mike . Mountain Goat Software . 8 February 2019 . 4 February 2019 . https://web.archive.org/web/20190204205711/https://www.mountaingoatsoftware.com/blog/stories-epics-and-themes . live .
- Web site: Scrum Alliance Member-Submitted Informational Articles . 11 September 2018 . 11 September 2018 . https://web.archive.org/web/20180911152200/https://www.scrumalliance.org/community/articles/2014/march/stories-versus-themes-versus-epics . live .
- Web site: Scrum tips: Differences between epics, stories, themes and features . Guay . Constantin . 26 January 2018 . 8 February 2019 . 19 November 2018 . https://web.archive.org/web/20181119085244/https://const.fr/blog/agile/scrum-differences-epics-stories-themes-features/ . live .
- Web site: 8 December 2021. User Stories, Epics & Themes. live. https://web.archive.org/web/20190209124534/https://www.scrum-academy.de/product-owner/wissen/user-stories-epics-themes/. 9 February 2019. 8 December 2021.
- Web site: You Don't Need a Complicated Story Hierarchy . Cohn . Mike . Mountain Goat Software . 8 February 2019 . 10 May 2019 . https://web.archive.org/web/20190510142725/https://www.mountaingoatsoftware.com/blog/you-dont-need-a-complicated-story-hierarchy . live .
- Web site: Configuring initiatives and other hierarchy levels - Atlassian Documentation. confluence.atlassian.com. 5 February 2020. An 'initiative' is a very large body of work, which spans multiple epics and sometimes, multiple teams. [...] An initiative is also an issue type in Jira.. 5 February 2020. https://web.archive.org/web/20200205092403/https://confluence.atlassian.com/jiraportfoliocloud/configuring-initiatives-and-other-hierarchy-levels-828785179.html. live.
- Web site: The new user story backlog is a map . Patton . Jeff . 17 May 2017 . 8 October 2008 . 14 May 2017 . https://web.archive.org/web/20170514005903/http://jpattonassociates.com/the-new-backlog/ . live .
- Book: Patton, Jeff (Software developer). User story mapping. Economy, Peter,, Fowler, Martin, 1963-, Cooper, Alan, 1952-, Cagan, Marty. 978-1-4919-0490-9. First. Beijing. 880566740. 2014.
- Web site: User Stories, Epics and Themes . Cohn . Mike . Mountaingoatsoftware.com . 26 September 2017 . 27 September 2017 . https://web.archive.org/web/20170927041658/http://www.mountaingoatsoftware.com/blog/stories-epics-and-themes . live .
- Web site: Walking Skeleton . Cockburn . Alistair . 4 March 2013 . 24 September 2013 . https://web.archive.org/web/20130924061832/http://alistair.cockburn.us/Walking+skeleton . live .
- Web site: Story Mapping . Agile Alliance . 1 May 2016 . 17 December 2015 . 23 June 2016 . https://web.archive.org/web/20160623192419/https://www.agilealliance.org/glossary/storymap/ . live .
- Web site: Journey Mapping 101. Experience. World Leaders in Research-Based User. Nielsen Norman Group. en. 15 March 2020. 19 March 2020. https://web.archive.org/web/20200319021655/https://www.nngroup.com/articles/journey-mapping-101/. live.
- News: Richardson. Adam. Using Customer Journey Maps to Improve Customer Experience. 15 November 2010. Harvard Business Review. 15 March 2020. 0017-8012. 22 March 2020. https://web.archive.org/web/20200322173349/https://hbr.org/2010/11/using-customer-journey-maps-to. live.
- Subversive participatory design Proceedings of the 14th Participatory Design Conference: Short Papers, Interactive Exhibitions, Workshops - Volume 2. EN. 10.1145/2948076.2948085. 11572/167104. 15915593. free.
- Web site: Project Advantages of User Stories as Requirements . Cohn . Mike . Mountaingoatsoftware.com . 26 September 2017 . 18 April 2012 . https://web.archive.org/web/20120418001257/http://www.mountaingoatsoftware.com/articles/27-advantages-of-user-stories-for-requirements . live .
- Web site: UseCasesAndStories . Martin . Fowler . 18 August 2003 . 26 September 2017 . 27 September 2017 . https://web.archive.org/web/20170927112047/https://martinfowler.com/bliki/UseCasesAndStories.html . live .
- Web site: User Stories . Cohn . Mike . Mountain Goat Software . 27 April 2016 . 30 April 2016 . https://web.archive.org/web/20160430023753/https://www.mountaingoatsoftware.com/agile/user-stories . live .
- Web site: User Story And Use Case Comparison . C2.com . 26 September 2017 . 2 September 2016 . https://web.archive.org/web/20160902181205/http://c2.com/cgi/wiki?UserStoryAndUseCaseComparison . live .