For a specific Team Foundation Server work item, when I switch Statefrom Newto, ActiveI would like to set the field AssignedTofor the current user. After looking at a few examples, I came up with the following transition markup:
<TRANSITION from="New" to="Active">
<REASONS>
<DEFAULTREASON value="Implementation started" />
</REASONS>
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ActivatedBy">
<ALLOWEXISTINGVALUE />
<COPY from="currentuser" />
<VALIDUSER />
<REQUIRED />
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ActivatedDate">
<SERVERDEFAULT from="clock" />
</FIELD>
<FIELD refname="System.AssignedTo">
<DEFAULT from="currentuser" />
</FIELD>
</FIELDS>
</TRANSITION>
The above sets up the field AssignedTo, but unfortunately sets it into the TFS service account and not the current user who made the change.
What is wrong with my markup or server setup, which causes a field AssignedTofor the TFS service account and not the current user?