TL;DR; Explains how to create and customise event handlers for Team Foundation Server 2010, covering supported events for version control, builds, work items, and test management.

I am looking at re-working the TFS Event Handler and I was hoping that you would help me decide what handlers to build!
The original Event Handler sends emails when:
The TFS Event Handler that I built for Team Foundation Server 2005 and Team Foundation Server 2008 used a service subscription to then handle events in a separate service host. This posed its own problems of writing the wrapper, API and host for the handlers. Well, now the Team Foundation Server team have stepped up and created their own.
The new TFS Event Handler will use these new Server Event Sinks to process the events more efficiently and quickly, but there is also the option to handle certain decision points on the server. This opens the window for Server Side check-in policies as well as a whole host of other options. These events should run more efficiently and benefit from the entire TFS Object Model that was extremely inefficient to load in the old Event Handlers.
There are lots of new integration points so I have listed all of the events here so you can get an idea what can be achieved.
| Version Control | Decision | Notification |
| CheckinNotification | ||
| PendChangesNotification | ||
| UndoPendingChangesNotification | ||
| ShelvesetNotification | ||
| WorkspaceNotification | ||
| LabelNotification | ||
| CodeChurnCompletedNotification |
Figure: Version Control events
| Build | Decision | Notification |
| BuildCompletionNotificationEvent | ||
| BuildQualityChangedNotificationEvent |
Figure: Work Item Tracking events
| Work Item Tracking | Decision | |
| WorkItemChangedEvent | ||
| WorkItemMetadataChangedNotification | ||
| WorkItemsDestroyedNotification |
Figure: Team Build Events
| Test Management | Decision | Notification |
| TestSuiteChangedNotification | ||
| TestRunChangedNotification | ||
| TestPlanChangedNotification | ||
| TestCaseResultChangedNotification | ||
| TestPointChangedNotification | ||
| TestRunCoverageUpdatedNotification | ||
| BuildCoverageUpdatedNotification | ||
| TestConfigurationChangedNotification |
Figure: Test Manager Events
| Framework | Decision | Notification |
| StructureChangedNotification | ||
| AuthorizationChangedNotification | ||
| IdentityChangedNotification | ||
| SecurityChangedNotification | ||
| SendEmailNotification | ||
| HostReadyEvent |
Figure: Framework Events
I will do a series of blog posts as I build the handlers so you can build your own, but I wanted to get the most common cases pre-built and ready to go. I know that emailing an assignment is a good one to start with, but what else do you see on the cards?
The Email handlers would not work so well in the Scrum environment, but what would?
Technorati Tags: TFS , TFS 2010 , TFS Custom
Each classification [Concepts, Categories, & Tags] was assigned using AI-powered semantic analysis and scored across relevance, depth, and alignment. Final decisions? Still human. Always traceable. Hover to see how it applies.
If you've made it this far, it's worth a conversation. Tell us where you are and what you're trying to change. Martin reads every inquiry and replies personally.
Start the conversationWe partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.

Xceptor - Process and Data Automation
Boxit Document Solutions

Healthgrades

Milliman

ALS Life Sciences

Genus Breeding Ltd

Deliotte

Higher Education Statistics Agency

Lean SA

Bistech

Capita Secure Information Solutions Ltd
NIT A/S
CR2

Akaditi

Emerson Process Management

ProgramUtvikling

Big Data for Humans

New Signature

Washington Department of Transport

Ghana Police Service

Royal Air Force

New Hampshire Supreme Court

Washington Department of Enterprise Services

Nottingham County Council

SuperControl

Milliman

Brandes Investment Partners L.P.

ALS Life Sciences

Sage

Teleplan