Reputation: 53
Goal: Capture the event raised when a TFS work item is saved in the Visual Studio UI, and prompt the user to send a boilerplate email to the person that the item is assigned to.
Issue: I'm unable to ascertain how to go about doing this. I've started a VS extension project, as that seemed like the most promising route, but from there I don't know where to look for the the window I need, or how to reliably subscribe to the saving event when such a window is open.
Upvotes: 0
Views: 189
Reputation: 14393
I think you will have to write a Visual Studio extension to create that type of functionality. Its not impossible but also not for the faint of heart. :)
It seems like your use case may be better served by TFS Notifications?
Set alerts, get notified when changes occur
UPDATE:
Another option may be to use TFS events via a web service, which looks much easier than a VS extensions - http://www.ewaldhofman.nl/post/2010/08/02/How-to-use-WCF-to-subscribe-to-the-TFS-2010-Event-Service-rolling-up-hours.aspx
Upvotes: 1