我在 tfs 2012 中更新了模板中的错误,以反映我们的错误跟踪的自定义工作流程。一切正常,直到设置关闭日期字段的最终转换被击中。发生此转换时,我收到错误消息:TF237165:由于服务器上的验证错误,Team Foundation 无法更新工作项。这可能是因为工作项类型已被修改或...
注释掉字段分配代码允许该过程完成而不会出错。将更改后的工作流程与开箱即用的工作流程进行比较时,我没有看到任何明显的东西。
这是自定义工作流程的 xml:
<WORKFLOW>
<STATES>
<STATE value="New">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY />
</FIELD>
</FIELDS>
</STATE>
<STATE value="Approved">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY />
</FIELD>
</FIELDS>
</STATE>
<STATE value="Fixed in Dev">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY />
</FIELD>
</FIELDS>
</STATE>
<STATE value="Deployed">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY />
</FIELD>
</FIELDS>
</STATE>
<STATE value="Verified">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY />
</FIELD>
</FIELDS>
</STATE>
<STATE value="Resolved">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Scheduling.Effort">
<READONLY />
</FIELD>
</FIELDS>
</STATE>
</STATES>
<TRANSITIONS>
<TRANSITION from="" to="New">
<REASONS>
<DEFAULTREASON value="New defect reported" />
<REASON value="Build Failure" />
</REASONS>
</TRANSITION>
<TRANSITION from="New" to="Fixed in Dev">
<REASONS>
<DEFAULTREASON value="Bug fixed" />
</REASONS>
</TRANSITION>
<TRANSITION from="Fixed in Dev" to="Deployed">
<REASONS>
<DEFAULTREASON value="Fix deployed to test" />
</REASONS>
</TRANSITION>
<TRANSITION from="Deployed" to="Verified">
<REASONS>
<DEFAULTREASON value="Fix is verified in test" />
</REASONS>
</TRANSITION>
<TRANSITION from="Verified" to="Resolved">
<REASONS>
<DEFAULTREASON value="Bug resolved" />
</REASONS>
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<SERVERDEFAULT from="clock" />
</FIELD>
</FIELDS>
</TRANSITION>
</TRANSITIONS>
</WORKFLOW>