Changing Work Item Field attributes

Sometimes you have to change the attributes of a work item field in TFS.  For example, let’s say that when you created a field, you gave it a friendly name of  “ReferenceID” and now you want to add a space and name it “Reference ID”. Or maybe when you created it, you gave it a reporting attribute of “Dimension”, but it really should’ve been “Details”.  One way to do it would be to get rid of the field and re-create it, but the right way to do it would be to use the witadmin command with “changefield” option, so this would change the name of the field.  Note that the /n swithc is for the unique reference name.

witadmin changefield /collection:http://myserver:8080/tfs/DefaultCollection /n:MyFields.ReferenceID /name:”Reference ID”

There’s a bunch of options…you can see the documentation here:

About esteban

Esteban is the Founder and Chief Technologist at Nebbia Technology, an ALM consulting and Azure-powered technology company. He is a software developer with a passion for ALM, TFS, Azure, and software development best practices. Esteban is a Microsoft Visual Studio ALM MVP and ALM Ranger, Pluralsight author, and the president of ONETUG (Orlando .NET User Group).

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you human? *