Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I modify the default Check-in Action in TFS 2012?

I want to associate a changeset with a workitem as default to associating it in TFS 2012.

Trying HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\**11.0**\TeamFoundation\SourceControl\Behavior @ResolveAsDefaultCheckinAction = "False" is not useful for tasks which "State" is "Active". It is ok when the state is "New", "Proposed" etc... Do you have any idea to do this for all states?

like image 208
cerezza Avatar asked Jan 28 '13 16:01

cerezza


1 Answers

It's a long story, The workaround that will work will be as the following:

Checkout this link here http://msdn.microsoft.com/en-us/library/ms194965(v=vs.110).aspx

Basically whats it is saying on a given work item type there is an action on work item transitions called "Microsoft.VSTS.Actions.Checkin". When you checkin code the source control system looks at the current state of the workitem your associating with the checkin. If any tranition from this state has a checkin action associated then it will move to that given state as the default action.

The solution is to remove this action - this is then for all users of TFS

enter image description here

Copied (Gary Howlett), for the full thread click on the following link:

http://msdn.microsoft.com/en-us/library/ms194965(v=vs.110).aspx

like image 191
Mohamed.Radwan -MVP Avatar answered Sep 24 '22 15:09

Mohamed.Radwan -MVP