在TFS中设置System.AreaPath和System.IterationPath只读

时间:2017-03-31 12:09:36

标签: tfs

如何将字段设置为只读" System.AreaPath"在某个州(例如"已批准")当我在另一个字段中有某个值时???我已经设定了" WHEN"然后" System.AreaPath"字段我将永远不可能设置为只读。谢谢加布里埃尔

1 个答案:

答案 0 :(得分:0)

READONLY规则无法在系统字段上使用,System.StateSystem.Reason除外。在this MSDN document中,它说:

  

系统字段是具有System.Name引用名称的字段   示例系统。 Title和System.State。 TFS限制了自定义   这些领域。

System.AreaPath和System.IterationPath都是系统字段。

因此READONLY无法在这两个字段上使用。如果您确实希望它们是只读的,则可以将readonly属性设置为System.AreaPath控件的True。

<Control FieldName="System.AreaPath" ReadOnly="True" Type="WorkItemClassificationControl" Label="&amp;Area" LabelPosition="Left"  />