TFS:更改状态类别 [英] TFS: Change state category
问题描述
我在 TFS 模板中添加了一个新状态 Ready for Shipping
.
I added a new state to my TFS-Template Ready for Shipping
.
转换工作正常,但我的新状态就像 Removed
-State.所以我认为我的新状态有错误的状态类别.
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.
如何更改新状态的状态类别?
我看到了这个链接,但我在那里找不到我的流程模板.它应该只更改特定项目的模板.我认为它也不适用于 TFS.
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.
有什么简单的方法吗?
推荐答案
类别的定义在一个名为 categories.xml
的文件中(针对每个团队项目).
The definition of categories is in a file called categories.xml
(for each team project).
语法是:
<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.
这篇关于TFS:更改状态类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!