Guillaume Davion
Guillaume Davion

Reputation: 434

How to modify the default Check-in Action in TFS?

The default check-in action for a work-item is "resolve". I'd like to set it to "associate" so that this work item isn't automaticaly closed if I check-in stuff too fast. How can I do that?

Upvotes: 9

Views: 3945

Answers (4)

partialinfinity
partialinfinity

Reputation: 303

For newer versions of Visual Studio, you can now set this default in the UI:

Tools -> Options -> Source Control -> Visual Studio Team Foundation Server -> (Uncheck) Resolve associated work items on check-in

Upvotes: 3

maf-soft
maf-soft

Reputation: 2552

Unlike previous versions, in VS2015 the registry key solution seems to work in the cases we need!

I just went to

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\TeamFoundation\SourceControl\Behavior

and changed ResolveAsDefaultCheckinAction from True to False.

Upvotes: 0

Martin Woodward
Martin Woodward

Reputation: 11770

Yup, the check-in action can only be associated to a state transition (i.e. Active to Resolved). In my blog post that Fredrick linked to (http://www.woodwardweb.com/vsts/top_tfs_tip_3_r.html) I talk about how to remove that. You'll need to customize the work item for everyone in your team project to make this happen. For help on that see

http://msdn.microsoft.com/en-us/library/ms243849(VS.80).aspx

Upvotes: 6

Fredrik Kalseth
Fredrik Kalseth

Reputation: 14224

Martin Woodward blogged about how to remove the "Resolve" action from the check-in dialog as a work-around for this:

http://www.woodwardweb.com/vsts/top_tfs_tip_3_r.html

Upvotes: 4

Related Questions