Apply a validation policy so that contributors can reference work items in TFS

How can I apply a validation policy so that contributors have to refer to work items in TFS?

I want no developer to be able to check the TFS service (tfs.visualstudio.com) without a link to a work item.

+2
source share
2 answers

In VS2010 or VS2012

Open โ†’ "Team Explorer". Select Team Project. Right-click โ†’ โ€œTeam Project Settingsโ€ โ†’ โ€œSource Controlโ€. Select the "Registration Policy" tab. Click "Add ...". Select "WorkItem."

In a visual studio, for a policy to take effect, all client computers must have TFS power tools installed. TFS POwer Tools

There is currently no way to provide it completely (at least I have not found it). Users always have the opportunity to override the policy as indicated HERE . Policy overrides are implemented in TFS. But you can do the following:

Vs2010 โ†’ Team โ†’ Alerts Explorer โ†’ New Alert โ†’ Checkin Alerts โ†’ and add "Check-in to a specific folder with the redefined policy". Mention your email for this warning. This will let you know that all developers override the policy, and you can contact them.

+6
source

As Isaiah4110 said, there is no default rule to validate work item binding before validation.
But I think you can try to write your own validation rules.
You can link to it here .

0
source

Source: https://habr.com/ru/post/1500739/


All Articles