user1060500
user1060500

Reputation: 1535

Check In Check Out Work Items in TFS 2010 API

Does TFS 2010 have the concept of checking out work items and checking them in. This action would lock the item for edit by other users while it is checked out.

I know I can do this for files under source control, but what about regular work items?

I haven't yet come across any documentation around this. If it's possible, does someone have a code sample?

Upvotes: 0

Views: 463

Answers (2)

Ewald Hofman
Ewald Hofman

Reputation: 12668

That is not possible. In TFS11 we have added 'merge on save' so there are less conflicts when saving a work item.

Would love to know why you want this feature though.

Upvotes: 2

Assaf Stone
Assaf Stone

Reputation: 6317

You could achieve a lock mechanism on work items if you write a custom control that allows or denies saving based on the result of some query you make to a custom service.

You would want to create a visual studio plugin that sets and resets the lock per work item.

While you're at it, you could write a server plugin that persists a serialized copy if the work item to disk or to the version control system.

I know it's a lot if work, but it should give you what you asked for.

Upvotes: 0

Related Questions