Actions and fields of work items  
Author Message
Divyajosephjohn





PostPosted: Team Foundation Server - Work Item Tracking, Actions and fields of work items Top

1. When I try to associate work item with a check-in I get the list of all work items . But I want to change work item template so that only specific work items in specific states can be associated with check-in. How to achieve this

2. While changing the work item type template can I add more fields and refnames What should I do to make these appear on work item list

 

 



Visual Studio Team System19  
 
 
Aliaksei Baturytski - MSFT





PostPosted: Team Foundation Server - Work Item Tracking, Actions and fields of work items Top

'Associate' is the checkin action that can be applied to all work item types, and this is not configurable.

You can modify the template and define your own fields. Please note though that modifying the template will have no immediate effect on existing work item types, since templates are only used for new projects creation. However, you can modify any existing work item type, too. See the "Administering Work Item Types" topic in MSDN.

Thanks,

Alex


 
 
Divyajosephjohn





PostPosted: Team Foundation Server - Work Item Tracking, Actions and fields of work items Top

Does it mean I can associate a closed bug with a Check-in and there is no way to restrict this Or is there a way showing some alert while trying to associate a closed bug with Check-in

Many Thanks


 
 
Aliaksei Baturytski - MSFT





PostPosted: Team Foundation Server - Work Item Tracking, Actions and fields of work items Top

That's correct - there's no way to restrict that. From my point of view associating a work item with a checkin is harmless - it cannot be compared with resolving a work item, which changes its state; whenever "resolve" operation is applicable to a work item in its state is configurable through the work item type definition XML.

Thanks,

Alex


 
 
jrcran





PostPosted: Team Foundation Server - Work Item Tracking, Actions and fields of work items Top

You should actually be able to do this w/ a check-in policy. One that comes to mind is the TimeThatTaskPolicy from Jason Camp. -- it requires that the checkin be associated with a single active task (in addition to requiring that hours be specified / checkin). this could be simply changed to a single OPEN bug (and the time tracking removed). Or it could check that the item you associated with isn't a closed item... a bit more work, but still do-able.

1) modify & compile the checkin policy

2) add it to the dev machines under the \Program Files\Microsoft Visual Studio 8\Common7\ide\PrivateAssemblies directory

3) set it active on your team project (right click on project -> team project settings -> scc settings)

jcran
jcran|at|iastate|dot|edu