How to: Override a Check-in Policy
Team Foundation source control functionality includes customizable check-in policies. These check-in policies require the user to take actions when conducting a check in to source control; for example a user can be required to associate a work item with the changeset. For more information on check-ins, see How to: Check In Pending Changes. The following procedure describes how to override a check-in policy during a check-in process.
Note
The following procedure assumes you will be checking in items that are in violation of a policy set against your current team project.
Required Permissions
To perform these procedures, you must have the Check in permission set to Allow. For more information, see Team Foundation Server Permissions.
To override a check-in policy during check-in
Perform a check-in; for more information, see How to: Check In Pending Changes.
Click the Policy Warnings channel to view the policies in place for your team project. For example, the policy constraint “You must associate your changes with one or more work items” prevents users from submitting changes without having a specific bug or feature for which they are submitting a change.
Check-in the items that are in violation of a set policy. The Policy Failure dialog box appears.
Check Override policy failure and continue check-in.
In the Reason box, enter an explanation describing why you need to perform the check-in in violation of the set policy.
Click OK.
See Also
Tasks
Walkthrough: Exploring Team Foundation Source Control
How to: Add Check-in Policies