Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS 2010 - New work item - auto select Assigned To with your Id

Is there a way to select the logged-on user for the Assigned-To field when a workitem is created.

Right now, when we create a bug, the assigned-To field is blank. The user then has to select the person (most of the time, him/herself) out of the available list..

I tried this out with TFS2005 and it was working so I'm curious as to what has to be changed.

like image 497
Lareau Avatar asked Jul 15 '11 15:07

Lareau


Video Answer


1 Answers

Not sure how to do it through GUI as it has been while, but in the xml, you can set it like this:

  <TRANSITIONS>
    <TRANSITION from="" to="New">
      <REASONS>
        <DEFAULTREASON value="Identified" />
      </REASONS>
      <FIELDS>
        <FIELD refname="System.AssignedTo">
          <DEFAULT from="currentuser" />
        </FIELD>
      </FIELDS>
    </TRANSITION>
    .....
  </TRANSITIONS>
like image 57
Mrchief Avatar answered Sep 28 '22 08:09

Mrchief