In my last post I updated how to make check-in comments mandatory for your TFS projects. In this one, I want to drill further down and show how to set policy to make linking change set to
Work items (in my case tasks mandatory). First, understanding task. Task is the most basic set of functionality a developer can work on. This in TFS can be linked to your change sets.
The thing to do there is to set a policy in place, unless you link a task, you cannot provide a check-in.
Here is how you need to do it:
In Visual Studio (2012/2013).
· Open “Team Explorer”.
· Select your “Team Project”.
· Click “Settings”.
· Under the “Team Project” heading click “Source Control”.
· Select the “Check-in Policy” Tab.
· Click “Add…”
· Select “Work Items”.
The end result is that now on all check-ins, if you do not provide the linked work items:
Note: The TFS model used here is Agile template.
Hope it helps!