2

我目前正在开发与 TFS2010 一起使用的自定义流程模板。我想对我的工作项目施加一些限制。我有一个“任务”工作项,它在创建时将以“待办事项”状态开始。当转换到下一个状态“进行中”时,我指定了“原始估计”字段是必需的。到目前为止,一切都很好。

为了对此进行扩展,我想在该字段处于“进行中”状态时将其设为只读,但在进行转换时允许对其进行编辑。目前,当我在“进行中”状态下为该字段设置只读时,我无法输入一个值。唯一可行的方法是在“待办事项”状态下输入值,保存然后转换。如果可能的话,我想避免那个临时保存步骤。

任何帮助深表感谢。

4

3 回答 3

1

I believe I found away around what I was trying to do by using the WHENNOTCHANGEDCONDITION.

By using this on the 'In Progress' state, I set the 'Original Estimate' field to READONLY when the 'State' is not being changed.

I would've tried FROZEN as Dave suggested, but I would like it to be amendable if returned to the previous state.

于 2012-04-13T08:09:13.247 回答
1

What about using FROZEN?

Specifies that you cannot change the field to a non-empty value after changes are committed. As soon as a user saves the work item with a value in that field, the value can no longer be modified.

于 2012-04-12T15:26:38.560 回答
1

您无法成功,因为您将只读字段约束设置为状态而不是转换为状态。

将您的只读约束置于“进行中”状态,而不是从“待办事项”到“进行中”的转换。

在流程模板版中右键单击转换框,然后选择属性(IIRC),您将处于熟悉的位置。

于 2012-04-18T20:20:07.243 回答