Skip to content

Forward and Backward Traceability in Azure DevOps: How to Trace Epics Down to Test Cases

Listen to this blog

When a release is being prepared for the audit and review meeting, it raises questions such as, “Are all epics or requirements covered by tests?” “Which requirement does this test verify?”, etc. Many times, teams probably have the links between work items in Azure DevOps already, but the actual problem is how to show these linked items in one place.

In regulated industries, requirement traceability helps teams prove whether each requirement is implemented correctly, tested, and whether tests have a justified requirement. There are two ways to trace a chain: forward and backward paths, revealing untested requirements and coverage gaps.

This blog will cover the difference between forward and backward Traceability and how to implement them in Azure DevOps. It also explains how Modern Requirements4DevOps helps in achieving end-to-end traceability without leaving Azure DevOps.

Key Takeaways

What you'll learn in this article

  • Forward traceability: how it follows epics down to test cases and exposes untested requirements.

  • Backward traceability: how it traces tests up to epics and finds orphan tests.

  • Why you need both: bidirectional traceability and the standards that call for it.

  • Tracing in Azure DevOps today: the limits of work item links and spreadsheets.

  • Horizontal and intersection matrices: a step-by-step walkthrough in Modern Requirements4DevOps.

  • Best practices: keeping both directions clean before every review.

What is Forward Traceability in Azure DevOps?

Forward traceability follows a chain from the highest-level requirement (epic) downward to test cases. The forward path in Azure DevOps (agile process) progresses as: Epic → Feature → User Story or Scrum (Product Backlog item) or a requirement in CMMI → Test Case.

In short, forward traceability answers how epics, features, and user stories were built and tested. Suppose medical software has a requirement for an infusion pump’s occlusion detection, traced forward to software design, implementation, and verification testing. When there are no test cases or user stories covering verification and implementation of occlusion detection, it creates a forward traceability gap.

Forward traceability proves that nothing you promised was left untested.

What is Backward Traceability in Azure DevOps?

Backward traceability is an upward path from test case to epic, the complete opposite of forward traceability: Test Case → User Story → Feature → Epic. This chain can vary based on which process template you are using.

Backward Traceability answers, “Why was this test needed?” or “Which requirement does it justify?” It uncovers tests with no real user stories, features, or requirements. If a test has no feature or epic linked to it, then it is called an orphan test.

For example, in aircraft software development, a test case verifies the FBEC altitude warning and traces back to its requirement. When an altitude test doesn’t have a justified source, it creates a backward traceability gap. Under RTCA DO-178C, identifying traceability gaps helps teams with verification, safety, and compliance.

Why You Need Both Forward and Backward Traceability

Forward traceability confirms that there are no untested epics (coverage), but it cannot find orphan tests, whereas backward traceability gives you tests that trace back to an epic, but no proof that every requirement was tested. Both directions are essential for a complete traceability matrix. Combined, it is called bidirectional traceability. It traces a chain in both directions, detecting unjustified requirements and features, orphan tests, and broken links.

Furthermore, international standards such as IEC 62304, DO-178C, and ISO 26262 emphasise end-to-end bidirectional traceability between requirements, design, implementation, and verification to identify gaps and ensure compliance.

FeatureForward TraceabilityBackward Traceability
Start atEpic, RequirementsTest Case, Bugs, Tasks
FollowsChild links to Tested byTest link to Parent link
QuestionIs every epic tested?Why does a Test Case exist?
DetectsUntested requirementsOrphaned Tests

How Teams Trace Work Items Forward and Backward in Azure DevOps Today

Azure DevOps has bidirectional links between work items, such as from epic to features to user story to test case or in the reverse direction. But to review these relationships between every work item and the whole chain, a team has to manually open work items one by one, as Azure DevOps does not provide a built-in tool that puts this whole chain in one view.

Therefore, teams usually export the data and maintain a separate traceability Excel spreadsheet. This approach becomes difficult when teams need to manage thousands of changing requirements, as spreadsheets become outdated.

As a solution, teams can use Azure-native requirements management tools like Modern Requirements4DevOps, which allow them to create live traceability matrices. With that, teams don’t need to manually update spreadsheets or traceability matrices. In the next section, let’s see how to create traceability matrices in modern requirements workshops.

How Modern Requirements4DevOps Helps You Trace Forward and Backward Inside Azure DevOps

Modern Requirements4DevOps creates an end-to-end traceability matrix within Azure DevOps with existing links and data.

Forward and Backward Traceability with a Horizontal Matrix

The horizontal matrix runs in both directions; It is a bidirectional traceability matrix.

Horizontal traceability matrix workflow in Modern Requirements4DevOps, from opening the Trace Analysis module to exporting the matrix

Step 1: Open the Trace Analysis Module from the Azure DevOps side panel.

Opening the Trace Analysis module from the Azure DevOps side panel in Modern Requirements4DevOps

Step 2: Then click on New Matrix and give a file name to the matrix.

Creating a new traceability matrix and entering its name

Step 3: Then, in the Editor tab, select the type of matrix as horizontal, and select the work item selection mode, which could be query, work item type, multi-query, etc. Also, select the work item types to add to the traceability chain with their relationship.

Selecting the horizontal matrix type and work item selection in the Editor tab

Step 4: Then, click the “Run” button. Once you click it, you can see the horizontal traceability matrix. You can clearly visualize the relationship between epics, features, user stories, test cases, etc. You can also add more work item types in this matrix.

Running the horizontal traceability matrix in Modern Requirements4DevOps

The best part? You can directly open any work item from the matrix and edit it without switching tabs.

Step 5: You can also switch to Tree view to visualize the hierarchy of work items in a top-down, tree-like view.

Tree view showing the work item hierarchy from epics down to test cases

Step 6: Users can also export this traceability matrix in Microsoft Excel format in a specific format.

Exporting the traceability matrix to Microsoft Excel

You can notice that whenever any requirements or relationships between work items are updated in Azure DevOps, it automatically updates in this live traceability matrix.

Step 7: The same process can be used to backtrace any chain; select top-level work items as test cases and linked work items upward to the epic. This way, unjustified requirements and orphan tests are found.

Backward traceability matrix starting from test cases up to epics

Furthermore, Modern Requirements4DevOps also allows creating an Intersection traceability matrix, which helps in finding coverage gaps between any two types of work items. For example, an intersection matrix between user stories and test cases allows finding which user stories are tested and which are pending.

Intersection traceability matrix in Modern Requirements4DevOps

This way, Modern Requirements4DevOps allows teams in any industry to create traceability matrices inside Azure DevOps and export them to share with external team members.

Use Cases for Horizontal and Intersection Matrices

Use caseMatrixHow it helps
Release readinessHorizontalCheck Epic-to-Test Case coverage
QA coverage reviewIntersectionFind User Stories without tests
Sprint reviewHorizontalCheck current sprint stories and linked tests
Failed test impactHorizontal + Link Tree ViewSee the requirement chain behind a failed test
Medical software traceabilityIntersectionMap requirements to verification records
Avionics software reviewsHorizontalFollow high-level requirements through tests
Compliance controlsIntersectionCompare controls against implementation work

Best Practices for Keeping Both Directions Clean

A traceability matrix is as good as the links and work items connected within Azure DevOps. The team should follow a clear and standard bidirectional path throughout a project.

  • Use links such as “tested by” and “related” with proper classification. Use “tested by” links only for verification cases and “other relationship” as related links.
  • Implement a proper hierarchy such as from epics to features to user stories to test cases, or you can build your own hierarchy chain for a project as well.
  • Before a major review or meeting, check both directions, forward and backward, for any coverage gaps or orphan tests.
  • While creating a new traceability matrix, name it clearly so one can follow or understand what that matrix is used for, such as “HM – Epic to Test Cases”
  • Always rerun the saved traceability matrix so the new data is reflected in the report from the current Azure DevOps links.

Conclusion

To sum up, forward Traceability discovers requirements that need verification, or it proves that every epic down to a user story is verified. Backward Traceability proves that every test, bug, task, or commit is linked to a real requirement. Both directions have a blind spot, but together they create complete and fast analysis reports and credible audits.

A disciplined team always maintains traceability matrices using tools like Modern Requirements4DevOps instead of just depending on Azure-native work item links. Want to see forward and backward traceability on your own Azure DevOps project? Book a demo.

FAQ

1. Does Azure DevOps generate a traceability matrix automatically?

Azure DevOps does not have any built-in feature to offer end-to-end traceability. However, teams are using requirement management tools like Modern Requirements4DevOps that work inside Azure DevOps and allow creating different types of traceability matrices and exporting them.

2. What types of traceability matrices can be created using Modern Requirements4DevOps?

Modern Requirements4DevOps allows creating horizontal and intersectional traceability matrices, where the horizontal matrix allows you to visualize the trace chain between multiple types of work items, and the intersectional matrix allows you to find coverage gaps between any two types of work items.

3. Is Modern Requirements4DevOps useful in regulatory industries?

Yes, in regulated industries such as automotive, aerospace, medical, or software industries, teams need to show that compliance with standards such as IEC 26304, ISO 26262, or DO-178C, etc., is followed, and Modern Requirements4DevOps can help to achieve that. Also, it is SOC Type II certified, so it keeps all of your data secure.

Recent Articles

Modern Requirements logo mark