I'm trying to make a field readonly except for the creator of a work
item. I know that I can use the <READONLY not="Group/User" to
restrict readonly access to a particular group etc.
What I want to do is restrict ability to change the assignedto field to the person who created the work item.
The rule I'd like to exist is
<FIELD name="System.AssignedTo">
<READONLY not="System.CreatedBy" />
</FIELD>
This fails in the import process
Using the XML above can make the field readonly in the UI. Users can bypass this by changing the data programmatically though. Full support for this will be available in a future release.
Thanks.
-Mareen.
pflangan
Posted: Team Foundation Server - General, Conditional field rules for field values
To me it seems that "currentuser" is taken as a string and not as a reference to the current user logged in. If I change "currentuser" to a 'real' username, then the WHENNOT rule seems to work.