如何在 WorkItem 转换时复制 IterationPath 或 IterationPath 字段的值

How to copy IterationPath, or value of IterationPath field on transition of WorkItem

在TFS中,我需要能够将迭代路径的值复制到另一个字段中进行存储。这是出于历史目的(因此用户不必查看更改日志中的数百个更改。)

我发现我无法创建 "TreePath" 类型的字段。但由于这只是为了显示,只读文本编辑器就可以了。

有没有办法复制 System.IterationPath 的字符串值?

不,那不可能。 TFS 限制自定义系统字段。

大多数规则在 System.AreaPathSystem.IterationPath 等特殊系统字段上被禁用。

详情请见System field rules

System fields have System.Name reference names, for example System.Title and System.State. TFS restricts customization of these fields, except for these instances:

  • HELPTEXT rule can be assigned to all fields.
  • READONLY rule can be assigned to the State and Reason fields.
  • Most rules can be assigned to the Title, Assigned To, Description or Changed By System fields.