Managing Requirements
We have been talking about discovering requirements, and among other things, ensuring their correctness and completeness. We also talked about storing them in a repository. So now we turn to the topic of managing those requirements. It is one thing to discover the correct requirements; the next thing is to ensure that the requirements are being properly used .
In this chapter, we discuss requirements management and how you can trace your requirements to ensure that all of them are implemented, and conversely, that the implementation consists only of requirements .
We also talk about tracking the status of the requirements: What state of development are they in? Are they only suggestions for requirements, or have they been implemented and tested? Or somewhere in between? Tracking is not only about understanding the status of the requirements but doing it in such a way that the entire team can see the requirements and thus the status of the project. Visibility is one of the objectives of requirements management .
We also visit the thorny issue of changing requirements. Change is good and bad. It is disruptive and it is helpful. It costs effort and saves effort. And it is like fire—it can consume you if you don’t control it. Later in the chapter we’ll look at how you can manage change .
Let’s start with traceability .
Traceability
Requirements traceability is about establishing and maintaining a link or trace between various project artifacts and the requirements. The purpose of doing this is to ensure that each requirement is consistently and accurately represented throughout the project’s life cycle.
This at first seems bureaucratic, but you should consider whether the benefits of tracing your requirements outweigh the cost.
Traceability provides transparency and helps stakeholders understand how requirements are interconnected with other project artifacts, such as prototypes, design documents, and the final code. Traceability helps with managing changes (discussed below), and by showing the impact of modifications on related requirements, design, and testing. By being able to see the linked artifacts, your change supremo is in a better position to judge the impact of any proposed change.
Traceability of your requirements helps you to ensure that each requirement is tested and validated appropriately. In cases of military or medical projects, it is a legal requirement that you can demonstrate that each requirement is implemented and tested. Even for commercial or scientific projects, validation of the requirements is important. After all, what would be the point of discovering requirements and then not implementing them? Apart from the low-priority requirements you choose not to develop, all requirements should end up as part of the delivered solution. Tracing the requirements helps considerably in locating gaps in the requirements or in the product.
We are using the word “requirement” when discussing traceability. However, you know that individual atomic requirements are assembled into business use cases or functional stories, so you can trace them by one of these groupings.
Tracing requirements can also create a record of how requirements evolve over time.
Traceability Matrix
A traceability matrix is used to document and visualize traceability relationships. It is typically a table where each atomic requirement (or business event, business use case, functional story, or other grouping) is linked to design components, test cases, and other relevant artifacts.
In its simplest form, it would show an identified requirement, the associated test case(s), and the status of the testing, and thus demonstrate the successful implementation of the requirement.
The metric can, and usually should, be more elaborate. You can include an identifier of the module(s) of code that implement the requirement, any design documents, and any prototypes that display information still current to the implementation.
Figure 38.1 shows an example of a requirements traceability matrix.
Figure 38.1
A simple requirements traceability matrix table
The product owner and project manager, and indeed the whole team, use the traceability matrix to monitor the status of the requirements, and how much of the product has been and still remains to be built.
Now let’s look at another way to trace. This one is more comprehensive.
Requirements Knowledge Model
You met the Requirements Knowledge Model before—it is a representation of the information you assemble when you discover your requirements. This time we are using it to demonstrate how it makes it possible for you to trace your requirements. Without having such an underlying structure, requirements tracing would be at best ad hoc, and possibly nonexistent. Consider the model shown in Figure 38.2 .
Figure 38.2
The Requirements Knowledge Model. The classes of knowledge you need to trace, and the links between them, are highlighted.
This presentation of the Requirements Knowledge Model highlights the traced classes along with the links between them. Let’s start at the top left with the Work Scope . We previously discussed how you use the scope to determine the business events. This determination establishes that there is a link between work scope and Business Events . This link is shown by the line between the two classes, and the notation along the line says that there are many business events attached to one work scope.
The links between the elements are significant. In this case, you have a work scope divided into a number of business events. For traceability purposes, you need to keep a list of these business events, and obviously, to which work scope they belonged. You would most likely use a requirements traceability matrix to keep track of this information.
The Business Use Case , or the Business Event Story (whichever you are using), is linked to the business event and represents the response that the solution makes to the business event. The model tells us that there is only one of these for any business event. By giving a unique identifier to each business event, you also identify the BUC or business event story.
You would normally automate part or all of the BUC, which might be done with one or more chunks. These chunks are the Product Use Cases (PUC) or Functional Stories attached to the BUC. The association between these classes establishes the link you need for tracing.
The next breakdown is Atomic Requirement or Detailed Task . The Volere snow card has a field for a requirement ID. It is similarly possible to identify a detailed task. Tracing then becomes a matter of maintaining the list of atomic requirements/detailed tasks that belong to the PUC or the Functional Story.
Thus, you can link the chain of classes from the original work scope down to the atomic requirements or detailed tasks. Naturally, you also link in the reverse direction.
Implementation Unit
The model shown in Figure 38.2 shows a link to a class called Implementation Unit . The exact nature of this is not important to our discussion here, but as its name suggests, it is a piece of the final implemented code. It might be an entire application; it might be an identifiable unit of code within the codebase. Its exact nature is not as important as the association between the atomic requirement and the implementation unit . This association is established whenever the developers implement one or more atomic requirements. In other words, it is the existence of the association between the implementation unit and the atomic requirement that tells you that the atomic requirement (or the detailed task) has been implemented.
This is the final leg of the trace. You can now verify that requirements have been implemented, and conversely, that implementation units are the product of requirements.
Tracing
The Requirements Knowledge Model represents the requirements for managing requirements. If you look back at the model in Figure 38.2 , you can see other potential traces. For example, there is a link between Business Use Case and Stakeholder . You might choose to trace which stakeholders are responsible for which BUCs. There are also other potential links shown in the model. You and your team choose which of these to maintain, depending on the size of the project in the budget automation you have for this kind of management.
The model shown here does not include other classes of knowledge that you might wish to incorporate in your own model. For example, you can include a Test Case class that is linked to the implementation unit and to the atomic requirement. These links demonstrate that your requirement has been both implemented and tested. You might also include design documents, prototypes, or other artifacts that you choose to trace. Your requirements knowledge model reflects your team’s view of the requirements discovery activity.
You might be doing this using an automated tool, which you would do for large and complex projects. If this is the case, the tool keeps track of the traced classes and the links we have been discussing, and automatically updates them as project artifacts evolve. Lacking such a tool, you can use a manual traceability matrix to satisfy the traces. If your requirements are being handled using a physical medium such as cards or Post-it notes attached to a wall—we spoke about this in Chapter 35 , Story Map —then you have a visual link between the knowledge classes.
Industries such as healthcare, aerospace, military, and finance; regulatory authorities; and similar groups require strict traceability to ensure that software meets safety and quality standards.
Traceability is not a one-time activity. It should be maintained throughout the software’s life cycle as requirements evolve and changes are made to project artifacts. Establishing and maintaining traceability is a key responsibility of the requirements management team in any project.
Tracking Status of Requirements
The status of requirements refers to the current state or condition of individual requirements (or business events, product use cases, or functional stories) throughout the software development project’s life. Whereas traceability is concerned with ensuring that requirements are tested and implemented, status is concerned with the stage of completeness that a requirement has reached. This is the concern of a project manager, a product owner, and team members who need to be aware of the state of their project.
Kanban
You might include status in your requirements traceability matrix, or you might find it more convenient to have a separate status matrix. The best way, in our opinion, of showing status is a Kanban board. Kanban originated in Japan and was initially developed by Toyota for its manufacturing processes. It has since been adapted and widely used in various industries, and particularly in agile software development.
The advantage of the Kanban board is that it is a visual representation of the requirements and their stages of development on their voyage through to implementation and deployment. Each requirement is typically depicted as a card, with different columns on the board representing various stages of the workflow. Figure 38.3 shows an example of a Kanban board.
Figure 38.3
A sample Kanban board showing the status of the requirements (shown as documents) for the project. You can choose to use PUCs or stories instead of requirements on your Kanban board.
The Kanban board shows work in progress, and thus the status of the requirements. Each small document icon on the board represents either an atomic requirement, a story, a PUC or a BUC, or possibly a business event. It is a matter for you to choose at what level you wish to track the status. For the moment, let’s call them “requirements.”
Each column represents one stage that the requirement passes through. There are no hard rules for categorizing the status of requirements, but you might find the following useful. These are the column headings shown in Figure 38.3 .
-
● Proposed: Requirements that have been identified but have not undergone formal review or analysis
-
● Analyzing: Requirements that are being discovered (you might break this down further to reflect different stages of requirements analysis)
-
● Design: Requirements for which there needs to be some solution design
-
● Specified or Backlog: Requirements or stories that have been written, have been quality-checked, and are now part of the specification or product backlog
-
● Implementing: Requirements that are being developed
-
● Validating: Requirements that are in the validation and verification process
-
● Deployed: Requirements that have undergone testing or validation to ensure that they meet their specified criteria and are now deployed in production
At the risk of overloading your Kanban board, you might include a column for requirements that are not currently within the project’s scope but may be considered for future releases. You might also keep track of rejected requirements—those that you have considered to be unnecessary, out of scope, or infeasible.
The Kanban board shows work in progress. It would be necessary to add some indicator to the requirement to say that it has completed that stage. You would also include some information on why a requirement was changed, dropped, or included. This might be needed later for verification purposes.
One of the principles of Kanban is that work is “pulled” from one stage to the next. Pull takes place when the condition of the work item allows, and there is capacity in the next stage that permits new work to be accepted. For example, the Design column of the board is fairly full. This indicates that the designers are overloaded and have become a bottleneck—they cannot, at the moment, pull more requirements into their activity. At the other end of the board, the Validating column has plenty of capacity, a signal perhaps to up the tempo of Implementing.
Kanban allows you, or your management, to limit the number of work items that can be in progress at any given time. This limit is set for each column on the Kanban board according to the capacity of the workers available for that task. You limit work in progress to maintain a steady workflow, one of the key factors in eliminating waste. When you can see the requirements and their status you can reduce wait times, minimize delays, and ensure that your requirements discovery moves smoothly and efficiently through the workflow.
A Kanban board does not have to be a physical board. There are many automated tools for maintaining a Kanban board online and for using it for remote, collaborative working. The key point is that it provides a visual representation of the requirements discovery and delivery work in progress. This visualization makes it easy for team members to understand the current status of the requirements, the work that has been done, and the work remaining to be done.
Requirement status should be monitored continually throughout the project’s life cycle, from initial requirements discovery to post-release maintenance.
In summary, tracking the status of requirements is an integral part of requirements management in software development. It ensures that requirements are properly reviewed, implemented, tested, and verified, contributing to project success and effective communication among project stakeholders.
Change Management
Change happens. We know that. But change is never free; it always has some impact on the rhythm of the project or the needed effort.
Many projects complain of ever-changing requirements, of stakeholders changing their minds, or asking for changes after something has been delivered, and so on. The litany of complaints is almost endless.
But it does not have to be this way.
Changes happen for a number of reasons, and some of them we cannot help you with. Corporate politics is one. Sometimes you have stakeholders who align themselves with certain requirements, and having their requirements supplant others, even late in the development, is a matter of demonstrating corporate power. Sometimes the stakeholders change, and you are suddenly dealing with new people who have very different ideas from the old ones.
Some changes happen because of changes to external forces. Sometimes mid-project the law changes, or regulations change, or corporate business rules change. Sometimes technology changes and it becomes obvious that the new technology offers such benefits that the best thing to do is to make changes to accommodate this advance.
You can’t do much to stop these types of changes happening. But you can do things to accommodate them more easily.
Then there are other changes that should not happen.
For example, if the scope of the problem space is not made reasonably accurate at the outset of the project, then changes are almost certain to happen when stakeholders realize during the project that needed functionality has been excluded. It’s also possible that unneeded functionality has been included. Both of these require changes that could have been avoided.
As you are going about your requirements discovery, you are learning about the organization, the work, and the people who do the work. The more you learn, the better position you are in to make assessments of the areas that are likely to be exposed to change. In the template, section 5 deals with assumptions. This is where you record your assumptions about anticipated changes. For example, you might assume that the technology could change, or the marketplace could change, or fashion and customers’ preferences could change. Assuming the change might happen does not mean that it will happen, but you would give this area a lower priority and develop it later to avoid having to redo work if a change happens.
How many changes are you dealing with? If there are a lot of changes, then it could be a sign of poor business analysis. If stakeholders are constantly asking for new things, then it suggests a poor definition of the scope or poor communication during the discovery activities. In this event, it is worthwhile for the team to meet and examine the nature of changes with a view to changing not the requirements, but the way the requirements are gathered.
Prototyping helps to avoid change. Having a mockup helps those stakeholders who are not good at visualization. However, some people fail to grasp what a sketched prototype is showing them, and for these people, you need the actual product.
Incremental or partial development helps here. A proof-of-concept version, or an MVP, or some other sample version can help these people see what the final product will be like and what it does. You are asking them if this is what they imagine they need.
At this stage, if the sample product is a long way from expectations, then we suggest you shut down the project and determine what went wrong. The product will never be any good if it is hacked into place by delivering something and then changing it to meet the flood of user requests. It will only be good if you build it on a solid foundation of a correct and agreed scope and goals of the project, along with requirements that are discovered by understanding the real business problem.
The moral of the story is that good business analysis goes a long way to preempting changes to the requirements, and it requires much less effort than building something and later changing it.
So, let’s turn away from the causes of change and look at how you might handle the change.
Managing Change
The first rule of managing change is that all changes are communicated to a central person—let’s call her the change supremo . This is probably the project manager, but it depends on your organization. Your project is out of control if stakeholders can bypass the supremo and bring their requests to their favorite business analyst or developer.
The change supremo filters all changes. A quick triage reveals whether the change is relatively nondisruptive or has serious ramifications.
-
● Is the change valid? Does it contribute to the goals of the project and the organization, and also to the intention of the product?
-
● How much effort is required?
-
● Does it negate any effort already expended?
-
● If accepted, would it change the scope of the problem space and/or the scope of the solution?
-
● Does the change affect only the product, or does it have ramifications in the business?
-
● Does the change bring value to the project and/or the organization?
-
● Is it trivial, or gold plating, and can be safely discarded?
-
● If the change is ignored, what impact would that have?
If the change is accepted by the supremo, then low-impact change requests can be handed off to a business analyst for investigation and resultant requirements.
High-impact changes are those that have a serious consequence on the project’s budget or that significantly alter the outcome of the project. For these change requests, the supremo must confer with a higher authority.
The change management process should be as nonbureaucratic as possible without losing control of changes. A competent change supremo who is close to, or part of, the project would outperform a change committee any day.
However it is done, the cost of incorporating all changes must be recorded. It is vital for project leadership to understand the cost and impact of change, and to warn customers of potential delays to the delivery of the product.
It is also crucial that your project, and future projects, make allowances for change when assessing their viability. Without allowing for the additional cost of changes, it is unlikely that project budgets can be taken seriously.
Finally, the most valuable part of change management is learning where changes come from, and in what stage of the development cycle. Changes made to requirements while they are still being discovered are relatively cheap (or mostly free). Changes made to products already in use are significantly expensive.
By learning where and why changes originate, you are in a better position to adjust your discovery and delivery process to minimize change. You can never eliminate change, but you can tame it.
Review
This book is about discovering requirements. Discovering the right requirements is crucial if you are to deliver the right solution. However, there is a little more to it than just discovery. You have to ensure that the requirements are managed so that they provide the maximum usefulness to your stakeholders and developers.
Managing requirements involves identifying the requirements for traceability purposes, documenting them in a way that makes their meaning clear, prioritizing them so that the most valuable requirements are developed early, and controlling them so that they provide the information needed for the successful development of the delivered solution.
Managing can include ensuring that the requirements are captured in a form that makes them understandable and useful. Previously we looked at how you write stories and atomic requirements. Managing requirements is concerned with collecting all the requirements in a usable form.
Management also includes assessing the assembled requirements to ensure that they are complete, consistent, and feasible.
Prioritization is constructive. It ensures that the requirements are ranked according to their business value and impact on the project or solution’s success.
Traceability establishes and maintains links between requirements and other project artifacts, which ensures that all requirements are correctly treated and eventually implemented.
Change happens throughout the project, and the requirements management task is to evaluate the value and impact of each change. Naturally, it is crucial to communicate the accepted changes to the stakeholders and project team.
In summary, managing requirements is about monitoring and controlling the requirements throughout the project and ensuring that they are correctly developed. After all, you put a lot of effort into discovering them. You should ensure that they are used properly.
Resources
Requirements Engineering: Fundamentals, Principles, and Techniques by Klaus Pohl (Springer, 2010). Pohl writes about approved techniques for discovering requirements and goes on to discuss validating and managing requirements for software-intensive systems. There is additional material on the book’s website, http://www.requirements-book.com .
More information on the traceability matrix is available at bit.ly/49tx7nJ.
Essential Kanban Condensed by David Anderson and Andy Carmichael (Lean-Kanban University, 2016). This is a distilled introduction, but it gives you all the principal concepts and guidelines to Kanban.
The Effective Change Manager’s Handbook: Essential Guidance to the Change Management Body of Knowledge by Richard Smith, David King, Ranjit Sidhu, and Dan Skelsey (Eds.) (Kogan Page, 2014). This is a comprehensive treatise on the subject and comprises chapters from established leaders in the topic.