VSTS | TFS 2018 | TFS 2017 | TFS 2015 | TFS 2013

How do you track and manage defects in your code? How do you make sure software problems and customer feedback get addressed in a timely manner to support high-quality software deployments? And, how do you do this while making good progress on new features?

At a minimum, you need a way to capture your software issues, prioritize them, assign them, and track progress. Moreover, you'll want to manage your bugs in ways that align with your Agile practices.

In a nutshell, you manage bugs through the following tasks:

  • Capture information using the bug work item type
  • Triage bugs by assigning a priority
  • Update bug status throughout the bug lifecycle
  • Monitor bug assignments and trends

In addition, you can:

  • Capture bugs using test tools
  • Configure how your team manages bugs—along with requirements or with tasks
  • Define queries and create charts of bug status, assignments, and trends
  • Manage duplicate bugs by linking and closing one of them
  • Re-run test cases in the web runner using the Verify option
  • Automatically capture bugs when using the Test & Feedback extension
  • Customize the bug template
  • Interface with UserVoice or Zendesk.

Capture bugs

You can track bugs in much the same way that you track product backlog items (PBIs) or user stories. Using the bug work item form, you capture the code defect in the Title, Steps to Reproduce, and other fields.

You can create bugs from the web portal, Visual Studio/Team Explorer, a work item template, or through one of the testing tools.

Bug work item form

The bug work item form tracks similar information to the one shown for the Scrum process.


The images you see from your web portal may differ from the images you see in this topic. These differences result from updates made to VSTSor your on-premises TFS, options that you or your admin have enabled, and which process was chosen when creating your team project—Agile, Scrum, or CMMI.

VSTS | TFS 2017 (new form enabled)

The new web form provides a number of experiences not provided with the old web form. To learn more, see New work item experience.

Scrum bug work item form, VSTS

TFS 2015 | TFS 2013 (old web form)

To learn more about working in the web form for TFS 2015 or earlier versions, see Add work items to plan and track your project.

Scrum bug work item form, TFS 2015 or earlier versions

Fields specific to bugs

When defining a bug, use these fields to capture both the initial issue and ongoing discoveries made when triaging, investigating, fixing, and closing the bug.



Steps to Reproduce (friendly name=Repro Steps)

Capture enough information so that other team members can understand the full impact of the problem as well as whether they have fixed the bug. This includes actions taken to find or reproduce the bug and expected behavior.

Describe the criteria that the team should use to verify whether the code defect is fixed.

System Info

Information about the software and system configuration that is relevant to the test.

Acceptance Criteria

Provide the criteria to be met before the bug or user story can be closed. Before work begins, describe the customer acceptance criteria as clearly as possible. The acceptance criteria can be used as the basis for acceptance tests so that you can more effectively evaluate whether an item has been satisfactorily completed.

Found In Build

Integrated in Build

When Test Manager creates bugs, it automatically populates System Info and Found in Build with information about the software environment and build where the bug occurred. To learn more about defining the software environments, see Test different configurations.

When you resolve the bug, use Integrated in Build to indicate the name of the build that incorporates the code that fixes the bug.

On-premises TFS only: To access a drop-down menu of all builds that have been run, you can update the FIELD definitions for Found in Build and Integrated in Build to reference a global list. The global list is automatically updated with each build that is run. To learn more, see Query based on build and test integration fields<.

For information about how to define build names, see build number format options.

Priority 1

A subjective rating of the bug as it relates to the business or customer requirements. Priority indicates the order in which code defects should be fixed. You can specify the following values:

  • 1: Product cannot ship without the successful resolution of the work item, and it should be addressed as soon as possible.
  • 2: Product cannot ship without the successful resolution of the work item, but it does not need to be addressed immediately.
  • 3: Resolution of the work item is optional based on resources, time, and risk.
Severity 1 A subjective rating of the impact of a bug on the project or software system. For example: If clicking a remote link (a rare event) causes an application or web page to crash (a severe customer experience), you might specify Severity = 2 - High and Priority = 3. Allowed values and suggested guidelines are:
  • 1 - Critical: Must fix. A defect that causes termination of one or more system components or the complete system, or causes extensive data corruption. And, there are no acceptable alternative methods to achieve required results.
  • 2 - High: Consider fix. A defect that causes termination of one or more system components or the complete system, or causes extensive data corruption. However, an acceptable alternative method exists to achieve required results.
  • 3 - Medium: (Default) A defect that causes the system to produce incorrect, incomplete or inconsistent results.
  • 4 - Low: A minor or cosmetic defect that has acceptable workarounds to achieve required results.

1 To change the menu selection or pick list, see Customize the work tracking experience. The customization method depends on the process model used by your team project.

For information about fields specific to the CMMI process, see Bugs, issues, and risks field reference. For information about all other fields, see Work item field index.

Add and review comments made about the work being performed by going to the discussion section.


Use the Discussion section to add and review comments made about the work being performed to resolve the bug. This feature is only available from the new web form.

Capture bugs using test tools

You can create bugs during test sessions using one of the following tools:

Triage bugs

Once you've started coding and testing, you'll want to hold periodic triage meetings to review and prioritize your bugs. How frequently you meet and for how long depends on your situation. Typically, the project owner runs the bug triage meetings, and team leads, business analysts and other stakeholders who can speak about specific project risks attend them.

The project owner can create or open a shared query for new and reopened bugs to generate a list of bugs to be triaged.

Bug queries

Open a shared query or use the query editor to create useful bug queries, such as the following:

  • Active bugs by priority (State <> Done or State <> Closed)
  • In Progress bugs (State = Committed or State = Active)
  • Bugs to fix for a target release (Tags Contains RTM)
  • Recent bugs - bugs opened within the last 3 weeks (Created Date > @Today-21)

Once you have the queries of interest to your team, you can create status or trend charts that you can also pin to a team dashboard.

Triage mode in query results

From the query results page, you can quickly move up and down within the list of bug work items using the up and down arrows. As you review each bug, you can assign it, add details, or set priority.

Triage query results

Track bugs as requirements or tasks

Many Scrum teams treat bugs the same as any backlog item or user story. Others see bugs as work that belongs to implementing a story, and therefore treat them as a task.

Bugs, like PBIs and user stories, represent work that needs doing. So, should you track your bugs along with other items in the product backlog items or as tasks linked to those backlog items? How does your team estimate work?

Based on how your team answers these questions, they can choose how they want to track bugs from one of these three choices. To change the team setting, see Show bugs on backlogs and boards.

Bug tracking options Choose this option

Bugs appear as part of the product backlog

Bugs appear on backlogs and boards with requirements

When your team or product owner wants to manage bugs similar to requirements. Bugs can be added and prioritize along with PBIs or user stories on the product backlog.

With this option, the team can estimate the effort or story points for bugs which are then included against team velocity and cumulative flow.

Bug backlog is separate from the product backlog

Bugs appear on backlogs and boards with tasks

When your team links bugs to PBIs or user stories, and manages them similar to tasks.

With this option, the team can estimate remaining work for bugs and track progress against the sprint capacity and sprint burndown.

Bugs don't appear on backlogs and boards

When your team manages bugs separate from requirements or tasks, or a different team is tasked with addressing bugs.

Assign bugs to a sprint

Once bugs have been triaged, it's time to assign them to a sprint to get fixed. By addressing a set of bugs to get fixed every sprint, your team can keep the total number of bugs to a reasonable size.

When bugs appear on the product backlog, you can assign bugs to sprints in the same way you do PBIs and user stories during your sprint planning sessions.

When bugs are treated as tasks, they're often automatically linked to a PBI or user story. So, assigning their parent PBI or user story to a sprint will assign the linked bugs to the same sprint as the parent PBI or user story during your sprint planning sessions.

Your team should consider fixing all bugs found during a sprint when testing a feature in development.


If you work from VSTS and TFS 2015.1 and later versions, you can drag-and-drop work items onto a sprint from any backlog or board.

Fix, resolve and close bugs (update status)

Bug fixes that involve more than a single section of code may require significant regression testing and may involve other team members. Record any conversations that relate to assessing the risk of bug fixes in the bug work item history.

Bug workflow lifecycle

Once you fix a bug, you should update its workflow State. State choices vary depending on the process you use—Scrum, Agile, or CMMI. The following images illustrate the workflow lifecycle defined for the default bug workflow for the Agile, Scrum, and CMMI processes.

Agile Scrum CMMI
Bug workflow states, Agile process template Bug workflow states, Scrum process template Bug workflow states, CMMI process template

For Scrum bugs, you simply change the State from Committed (similar to Active) to Done. For Agile and CMMI, you first resolve the bug, indicating that the bug has been fixed. Typically, the person who created the bug then verifies the fix and updates the State from Resolved to Closed. If more work has been found after a bug has been resolved or closed, it can be reactivated by setting the State to Committed or Active.

Verify a fix

To verify a fix, a developer or tester should attempt to reproduce the bug and look for additional unexpected behavior. If necessary, they should reactivate the bug.

When verifying a bug resolution, you may find that the bug was not completely fixed or you may disagree with the resolution. In this case, discuss the bug with the person who resolved it, come to an agreement, and possibly reactivate the bug. If you reactivate a bug, include the reasons for reactivating the bug in the bug description.

Verify a bug, re-run tests defined for web apps


Feature availability: The Verify option is available from the bug work item form from VSTS and the web portal for TFS 2017.1 or later versions.

Choose the Verify option to re-run tests which identified the bug. You can invoke the Verify option from the bug work item form context menu to launch the relevant test case in the web runner. Perform your validation using the web runner and update the bug work item directly within the web runner.

VSTS, Bug work item form, Actions menu, Verify option

To learn more about running test from the web portal, see Run tests for web apps.

Close a bug

You close a bug once it's verified as fixed. However, you may also close a bug for one of these reasons:

  • Deferred - deferring a fix until the next product release
  • Duplicate - bug has already been reported, you can link each bug with the Duplicate/Duplicate of link type and close one of the bugs
  • As Designed - feature works as designed
  • Cannot Reproduce - tests prove that the bug can't be reproduced
  • Obsolete - the bug's feature is no longer in the product
  • Copied to Backlog - a PBI or user story has been opened to track the bug

It's always a good idea to describe any additional details for closing a bug in the Discussion field (new web form) or the History field (old web form) to avoid future confusion as to why the bug was closed.

You can track the bug status, assignments, and trends using queries which you can then chart and add to a dashboard.

For example, here are two examples showing active bugs by priority trend and a snapshot of bugs by priority.

Bug trend chart from query Bug snapshot by priority

To learn more about queries, charts, and dashboards; see Create managed queries and Charts, and Dashboards.

Pre-defined SQL Server bug reports (on-premises TFS only)

If you work from an on-premises TFS and you have SQL Server Analysis Services and SQL Server Reporting Services configured for your team project, you have access to the following reports (Agile and CMMI processes only).

To learn how to add SQL Server reports for a team project, see Add reports to a team project.

To track your bugs and integrate with other resources available to you, see these topics:

Integrate & Test resources

Customize the bug form

You can add fields, change the bug workflow, or customize the bug form. The method you use depends on the process model used by your team project. For details, see Customize the work tracking experience.