【问题标题】:Error while importing Work Item Type - TFS导入工作项类型时出错 - TFS
【发布时间】:2011-03-21 21:04:58
【问题描述】:

当我从 Team Review 导入工作项类型时,我收到此错误:

TF218007: Cannot import the work item type. It changes fields in team projects
in which you do not have permissions to make changes. Correct this problem by
changing the definition of the work item type so that it does not change the
name or reporting behavior of these fields:
Microsoft.VSTS.Common.StateChangeDate, System.ExternalLinkCount,
System.HyperLinkCount, System.AttachedFileCount
Or obtain permissions to make
changes to these team projects: Project2
Operation failed.

我应该对 WIT 定义进行哪些更改?

【问题讨论】:

    标签: visual-studio tfs tfs-workitem


    【解决方案1】:

    首先,检查您是否在“Project2”中拥有管理员权限。如果这不起作用,请导出 Project2 中的 WorkItemType 之一,然后检查 XML。查找提到的字段:

    Microsoft.VSTS.Common.StateChangeDate, System.ExternalLinkCount, System.HyperLinkCount, System.AttachedFileCount

    并确保您的 WorkItemType 中的定义与它们匹配。听起来您可能以某种方式删除或修改了这些字段。

    【讨论】:

    • 当我尝试将 WIT 导入 Project1 时,为什么我需要 Project2 的管理员权限?另外,无论如何我都没有修改过 XML。这在原版 TFS 安装上效果很好,但与我尝试执行的暂存安装有冲突。
    • 查看错误信息,似乎是在尝试导入 Project2,而不是 Project1。
    【解决方案2】:

    这些字段已存在于 Project1 中。您正在尝试将相同的字段导入 Project2,但具有不同的 name="" 和 reportingtype="" 设置。由于您无权更改 Project1 中的定义,因此服务器阻止您上传类型。

    你有两个选择:

    1. 获取允许您更改字段设置的 Project1 的权限
    2. 更改 XML 中的设置以匹配 Project1 中的设置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-17
      • 2018-11-23
      • 2011-02-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-18
      • 2014-06-27
      相关资源
      最近更新 更多