Robert
Robert

Reputation: 40

Selecting fields populated when copying tfs work item

New TFS admin here. A team has requested that when a work item is copied (bug and requirements), the system and referenceid fields should not be copied (i.e. the fields should be blank for all new items). Any guidance on how to accomplish this? Seems like making the default value empty would work.

Upvotes: 1

Views: 287

Answers (1)

KMoraz
KMoraz

Reputation: 14164

DEFAULT rule should work with some restrictions on Area and Iteration fields. Work item templates may be a better approach for this.

For example, on transition to the first state (New, To Do, etc.) you can force the default values:

 <TRANSITIONS>
    <TRANSITION from="" to="New">
       <FIELDS>
         <FIELD refname="System.AssignedTo">
           <DEFAULT from="value" value="" />
         </FIELD>
         <FIELD refname="Microsoft.VSTS.Common.BacklogPriority">
           <DEFAULT from="value" value="100" />
         </FIELD>
       </FIELDS>
  </TRANSITION>

Upvotes: 2

Related Questions