Partager via


Code review and feedback field reference

You can use the code review and feedback fields to create queries and reports that track the status of these processes. The fields appear in the following work item types, which are included with the default process templates for Visual Studio Team Foundation Server 2013: Code Review Request, Code Review Response, Feedback Request, and Feedback Response.

Note

If your Team Foundation Server has been upgraded from an earlier version you might need to update your team project to get access to these work item types. See Configure features after a TFS upgrade

Fields used to track code reviews

The following fields are used to track code review requests and responses. A code review response is created for each person who’s been requested to provide review comments. See Day in the life of an ALM Developer: Suspend work, fix a bug, and conduct a code review.

Field name

Description

Reference name

Data type

Accepted By

The name of the code reviewer.

Microsoft.VSTS.CodeReview.AcceptedBy

String

Accepted Date

The date and time when the code-reviewer responded.

Microsoft.VSTS.CodeReview.AcceptedDate

DateTime

Associated Context

The name assigned to the code work requested for review.

Microsoft.VSTS.CodeReview.Context

String

Associated Context Code

An integer value that captures whether the code review is for 1 (shelveset) or 2 (changeset).

Microsoft.VSTS.CodeReview.ContextCode

Integer

Associated Context Owner

The GUID assigned to the shelveset owner who requested the code review.

Microsoft.VSTS.CodeReview.ContextOwner

String

Associated Context Type

The type of code work requested for review: Shelveset or Changeset.

Microsoft.VSTS.CodeReview.ContextType

String

Closed Status

The status selected by the reviewer when closing the code review request. The number is stored in the system and written to the data warehouse as follows:

  • 0 – Not Reviewed

  • 1 - Looks Good

  • 2 - With Comments

  • 3- Needs Work

  • 4 - Declined

  • 5 - Removed

Microsoft.VSTS.CodeReview.ClosedStatus

String

Closed Status Code

A value ranging from 0 to 5 that corresponds to the status selected by the reviewer when closing the code review request.

Microsoft.VSTS.CodeReview.ClosedStatusCode

Integer

Closing Comments

The comment entered by the reviewer when closing the review request.

Microsoft.VSTS.CodeReview.ClosingComment

String

Reviewed By

The name of the team member who reviewed the code. The State transitions to Reviewed when the code reviewer responds. (Code Review Response)

Microsoft.VSTS.Common.ReviewedBy

String

Reviewed Date

The date-time stamp when the reviewer closed the request. (Code Review Response)

Microsoft.VSTS.Common.ReviewedDate

Date-Time

State Code

Mirror field used to track the current state in code.

Microsoft.VSTS.Common.StateCode

Integer

Fields used to track feedback

The following fields track feedback requests and responses. You complete the first three fields in the feedback request form. A feedback response is created for each person and for each item for which feedback is requested. See Get feedback.

Field name

Description

Reference name

Data type

Application Launch Instructions

Instructions to stakeholders on how to start the application.

Microsoft.VSTS.Feedback.ApplicationLaunchInstructions

HTML

Application Start Information

Guidelines to direct stakeholder feedback.

Microsoft.VSTS.Feedback.ApplicationStartInformation

PlainText

Application Type

The type of application that stakeholders will provide feedback on. The valid types are specified in the process configuration file, ProcessConfiguration. The default values are Web Application, Remote Machine, and Client Application.

Microsoft.VSTS.Feedback.ApplicationType

String

Rating

The number of stars that an item receives from a reviewer in a star-based ranking system. (Feedback Response)

The number is stored in the system and written to the data warehouse as follows:

  • 0 – Not Rated

  • 1 - Poor

  • 2 - Fair

  • 3- Good

  • 4- Very Good

  • 5 - Excellent

Microsoft.VSTS.Common.Rating

String

See Also

Concepts

Work item field reference for Visual Studio ALM