【发布时间】:2017-05-17 13:57:45
【问题描述】:
我刚刚使用 witadmin 工具添加了一个新的工作项类型:
witadmin.exe importwitd /collection:"http://mytfsserver.com:8080/tfs/myprojcol" /p:"myproj" /f:"mywit.xml"
导入成功并显示消息:
The work item type import has completed.
然后我继续更新类别,在 RequirementCategory 中引用新的 WIT:
witadmin.exe importcategories /collection:"http://mytfsserver:8080/tfs/myprojcol" /p:"myproj" /f:"categories.xml"
我得到一个错误响应:
TF237059: The import of the category definition failed. In the type definition,
category Requirement Category refers to a work item type that does not exist mywit.
我试图从服务器获取 WIT 列表:
witadmin.exe listwitd /collection:"http://mytfsserver:8080/tfs/myprojcol" /p:"myproj"
但我最近添加的 WIT 不在列表中。
我试图删除它:
witadmin.exe destroywitd /collection:"http://mytfsserver:8080/tfs/myprojcol" /p:"myproj" /n:"mywit"
并得到它的定义:
witadmin.exe exportwitd /collection:"http://mytfsserver:8080/tfs/myprojcol" /p:"myproj" /f:"mywit.xml" /n:"mywit"
两个请求都得到了相同的错误响应:
TF201077: The work item type mywit cannot be found. It may have been renamed or destroyed.
但是当我通过网络浏览器打开 TFS 时,我可以根据我刚刚添加的 WIT 创建一个新项目。
这是一个 TFS 错误吗?如何让 TFS 识别我刚刚添加的新 WIT?
【问题讨论】:
标签: tfs