【发布时间】:2016-08-25 00:59:49
【问题描述】:
我正在尝试为用户故事工作项类型上的 System.Description 字段设置默认规则。早在 TFS 2010 中,该字段是纯文本,但在 TFS2015 中它被转换为 Html,所以我想我可以向它添加一些 Html 标记。
<FieldDefinition name="Description" refname="System.Description" type="HTML">
<DEFAULT from="value" value="<p><b>En tant que:</b></p><p>[rôle ou personne]</p><p><b>Je désire:</b></p><p>[Nouvelle fonctionnalité]</p><p><b>Puisque:</b></p><p>[raisons et contexte qui motivent le changement]</p><p><b>Tests d'acceptation et détails techniques:</b></p><p>[Ce qui déterminera que la story est complété + les détails techniques]</p>" />
<HELPTEXT>Description or reference to the story that must work for this work to be considered complete</HELPTEXT>
</FieldDefinition>
但现在我遇到了这个错误:
根据其数据类型,'value' [...] 属性无效 'http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/typelib:NonEmptyConstant' - 实际长度大于 MaxLength 值。
据我所知,此字段限制为 255 个字符。有没有办法增加这个? Bug WIT 没有这个限制,但是字段 Ref Name 也不同。
【问题讨论】:
-
请编辑您的问题以包含您的工作项类型定义中的相关 XML 部分。