Restricting the Assigned To column in TFS Work Item from being Same as Creator

微笑、不失礼 提交于 2019-12-11 02:43:20

问题


I am trying to request a code review in TFS. The developer creates a work item and assigns to anybody in the team asking for a review.

Here, I just want to make sure none of the developers should be able to create a WI assigned to himself/herself (by creating a Task WI). It should go to only other people in the team. Is there any way I can edit the WI feature.

I know there is a field "Assigned To" . Is there any way I can edit this field to prevent to assign to the current user.


回答1:


You could use the NOTSAMEAS rule to prevent it from been the same value as the CreatedBy field (assuming that it is set as READONLY).

Example:

<NOTSAMEAS field="System.CreatedBy" />


来源:https://stackoverflow.com/questions/9423426/restricting-the-assigned-to-column-in-tfs-work-item-from-being-same-as-creator

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!