开发者

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

开发者 https://www.devze.com 2023-03-20 09:26 出处:网络
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 pers开

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 pers开发者_运维知识库on (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.


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>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号