问题
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