The Art of Writing Specifications in an Agile Ecosystem

Featured
20970 Views
2 Comments
22 Likes

Writing functional specifications as a business analyst (BA) in an agile ecosystem is a challenge of a different kind. You no longer have the luxury of time (unlike bigger waterfall projects). You no longer can be sure with a specification version as the final document (because of the iterative philosophy). You are not sure how comprehensive the functional specification should be (Agile manifesto: working software over comprehensive documentation).

Agile Functional SpecificationsHold on ! Before moving ahead, lets clearly define the scope and need for a ‘functional specification document’ in agile.

Enterprise IT organizations with long term complex projects— While moving from waterfall to agile model, they still had to maintain traditional style of documentation. This was mainly to facilitate the process of sign-offs as most clients still expected the old way of creating requirement/solution documents — for compliance purposes. It was normally difficult to achieve client sign-off on the typical agile artifact like a user story or a acceptance criteria. Also, it is cumbersome to document all the underlying functional and architectural justifications on a light agile artifact. Even for a Product based organization — maintaining all the implemented features requires a centralized document commonly known as product specifications.

Thus there was a need for a document in MS-Word, Google Sheets or on one of the collaboration software like SharePoint, confluence etc. They contain detailed requirements, business context, in-scope/out-of-scope items and generally be more verbose. These documents provide traceability to a user story (SCRUM), acceptance scenarios (ATDD : Acceptance Test Driven Development) or feature files (BDD : Behavioral Driven Development).

In short, the functional specifications ends up complimenting the prescribed agile artifacts by providing a centralized view.

If you are a BA who has been molded in a waterfall set-up, writing specifications in agile can be quite a change from the usual process. Documenting a feature, change request or a new user interface in agile model requires a perspective which allows for changes or feedback to creep in at a later stage. It also calls for some new ways for dealing with all the moving parts of the agile world.

Let’s look at some of the other typical challenges that are often encountered:

Writing specifications for small chunks of development

Normally in agile mode, a big feature or functionality is broken into smaller parts and development is spread across multiple iterations. This means that in order for a development work unit to get accepted, the BA has to quickly write specifications for that small part and get an agreement over it. This modular way of documentation is a big departure from the traditional way of documentation wherein you can think and dwell over the impacts over all the end-to-end flows. It also means that your individual specifications should be clearly traceable to requirements and have a clear linkage between themselves.

Writing specifications parallel to ongoing development

This is the problem which brings out the most conflicts amongst team members. The sprint starts and in parallel, the BA is quickly writing specifications while the developers are starting to create the design. In the best-case scenario, the BA passes the specifications to the developer just in time for them to start coding. In the worst-case scenario, the BA gets stuck in cycles of clarification and changes and the developer has to change/modify the code much later once the final confirmation comes. A lot of teams try to bypass this by writing specifications one sprint before development starts. However this problem still occurs frequently when timelines are tight.

Review process for specifications

The review process in agile includes stakeholders like developers (Dev) and testers apart from the usual ones. Since it is a very collaborative development model, the entire team has to own up and question the deliverable. This helps the developers in catching some obvious design mistakes and also gives an opportunity for the QA to design testing strategy at an earlier stage. However this also means more and more walk-through sessions, and more context switch for the team members. If the BA is not able to build consensus during the review process, he/she falls behind the actual development happening in parallel.

Rewriting specifications as per feedback in demo

In agile, the demo is where the fate of the deliverable is decided (if the feature is not already presented to the stakeholders earlier). If the customers are not happy about something, or there is some fine-tuning required, the BA has to go back and change specifications. This means one more round of sign-off. All this eats the bandwidth of the BA and increases more follow-ups.

How verbose should the specifications be?

Agile manifesto values say “working software over comprehensive documentation”. But are organizations really prepared to ditch the huge specifications and opt for leaner ways of writing specifications? Some are and some aren’t. A lot of the industries where compliance plays a big role are hesitant to ditch the old style documents. They recommend writing everything for the aim of the sign-off. A lot of product companies have started embracing lighter documentation style. But the jury is still out on a singular style of documentation. Sometimes in scrum, the BA is unsure about the depth in which they should write specifications, so that a) no alternate flows, out of scope points and impacts are missed out and b) it should not take a really long time to write and get a sign-off on the specifications.

Looking at the bright side…

Its not all dull and gloomy. Let’s look at some of the brighter side of the documentation work in agile. With the great feedback loop that agile has in place, a BA gets to test their specifications with a wide variety of expertise. You get a chance to build great rapport with the development and the testing team. You also don’t have the pressure of creating a 100-page specification document in one go. The staggered approach gives you time to introspect, react and make changes in time if you have missed something. The idea eventually is to be smarter and more proactive in managing the specifications in agile.

How should we overcome all the challenges?

Some of the best practices that I advocate for writing specifications in agile :

  • When you write small chunks of specifications in an iterative way, make sure the style and the way of writing are similar and consistent each time. With a constant style, the readers find it easier to comprehend the specs and follow a pattern.
  • Devise a way to make the specifications crisp and compact. If you have just moved to agile, revisit the specification template and create a lean one. Make sure that the BA community in your unit collaborates on this and keep your managers and other stakeholders informed that this will be the new way of writing specifications. Inform them clearly of the pros and cons behind this, so that they are not caught unawares at a later stage.
  • Get the specification reviewed early by team members and the Product Owner (PO). Find time to give a walk-through of the specification, preferably a time of their choosing. Even if the specification is in a draft stage, it is always better to share that with the developers and testers. It will at least point them in a broad direction. Encourage them to poke holes into the specifications and bring out the challenges that they foresee in development and testing.
  • Always decide on a client sign-off date even if it is not possible in the current sprint. Make it a practice to keep a checkpoint for specification sign-off during code promotions to advanced platforms (much before production activation). It is also possible to get separate sign-offs for the different chunks of specifications (although this is almost always very hard to practice). Remember : No matter what, one should never activate a piece of code in production without ensuring the corresponding piece of specification signed off.
  • Make sure you factor all the bandwidth required to go back and forth on the specification sign-off. This helps in estimating the time it took for the specifications to be completed in its entirety.
  • Always have a clear traceability between the user stories/acceptance criteria/feature files and the specification, between the QA test cases and the specification and between the developer unit tests and the specification. Try to have the specification link in the user story description as early as possible.

The entire idea is to be flexible in the whole process while tying the scope of your project. In the end, a business analyst has to adapt and discover the intrinsic value that agile brings into the quality and correctness of the specification writing process.

How has been your experience in writing functional specifications in agile ?


Pushkar AnandAuthor: Pushkar Anand, Business Analyst

Pushkar Anand has been working in the role of business analysis for over 12 years and is specialized in air cargo operations, hospitality, and digital marketing. Has experience working with some of the biggest airlines in the world and some of the biggest players in the hospitality industry. He is passionate about discovering the newer aspects of business analysis and domains and sharing that with the business analysis community.

Like this article:
  22 members liked this article
Featured
20970 Views
2 Comments
22 Likes

COMMENTS

Armando Mancilla posted on Tuesday, April 20, 2021 8:00 AM
Great points raised. One of the main thins we learn with the product mindset and continuous discovery is that we should be 2 or 3 sprints ahead of the team in terms of validated backlog. It means that the BA or the product person shouldn't be specifying while the team is trying to develop it. It simply doesn't work. The team needs a minimum to define the technicalities/architecture of a demand/story. And to define that, the business understanding needs to be in place. Scrum predicts the team should spend around 10% of the sprint in refinement activities. So the BA should be working with the time to refine today the stories that will come in 2 or 3 sprints. The sprints for the next sprint should be already refined. The idea that we create specs at the same time than the development is old, it's from when people were still trying to understand how agile works. We know today we need to be 1, 2 or 3 sprints ahead, otherwise we're not able to have a minimum project planning
mancillat
DHollingsworth posted on Thursday, March 31, 2022 3:56 PM
Thank you for this very timely article. Your material and insights are precisely what I needed for my own learning and for passing to others in same boat.
Dhollingsworth
Only registered users may post comments.

 



Upcoming Live Webinars

 




Copyright 2006-2024 by Modern Analyst Media LLC