Adam Scharp
Adam Scharp

Reputation: 632

TFS - Updating Work Item Types For All Project/Collections

Background

In our environment, we are constantly making changes to our work item types (WITs), due to changes in our procedures. We currently have two main collections; one collection has around 5 projects, and the other one has around 20. For each project, we have 7 different WITs.

It gets kind of cumbersome when I have to make the a change to the templates, because I have to change them on every project/collection that we have. Typically, I just modify one template, and use the command line (witadmin) to import that xml file into each project. It's really difficult to know whether or not WITs are current on all projects.

What I am looking for

What I Already Know

Current Configuration TFS 2010 and VS 2012 (We are soon upgrading to TFS 2012)

Upvotes: 3

Views: 650

Answers (1)

KMoraz
KMoraz

Reputation: 14164

Fortunately Grant Holliday did an excellent post on that topic.

A quick method is automating your WIT export\import with batch files (ExportWITDs.cmd, ImportWITDs.cmd). Then use the Checkin.cmd example to check-in the changes to a dedicated folder for WITs on the source control.

If your'e looking for a tidier, more robust solution, go for the TFS-SDK. A Visual Studio extension that adds an Export\Import\Sync All WITs buttons would be great.

Upvotes: 3

Related Questions