Reputation: 632
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
I am pretty comfortable running TFS/DOS commands, so I ultimately could create a batch script that would automate that for me. This would probably be a last resort scenario.
Another option would be to write an app using the TFS SDK and import the WITs to all projects.
Current Configuration TFS 2010 and VS 2012 (We are soon upgrading to TFS 2012)
Upvotes: 3
Views: 650
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