Reputation: 1687
I added a new state to my TFS-Template Ready for Shipping
.
The Transitions are working fine, but I my new state acts like the Removed
-State. So I think my new State has the wrong State-Category.
How can I change the State-Category of my new state?
I saw this link, but I dont find my process template there. And it should only change the template for a specific project. I think its not for TFS too.
Is there any easy way to do it?
Upvotes: 0
Views: 154
Reputation: 41775
The definition of categories is in a file called categories.xml
(for each team project).
The syntax is:
<CATEGORIES>
<CATEGORY name="category display name" refname="category reference name">
<DEFAULTWORKITEMTYPE name="work item type reference name" />
<WORKITEMTYPE name="work item type reference name" />
</CATEGORY>
</CATEGORIES>
You need to export the file with this command:
witadmin exportcategories /collection:CollectionURL /p:Project
[/f:FileName] [/e:Encoding]
Edit the file and add the new state to the correct category.
Import the file with this command:
witadmin importcategories /collection:CollectionURL /p:Project /f:FileName [/e:Encoding]
More information you can find here and here.
Upvotes: 1