Project Description
A web service to notify any number of users when any work item in TFS changes. Notification logic is easily customisable to suit your environment.

TFS Global Alerts supplements the per-user configuration provided via the Alerts Explorer in Visual Studio 2010. Use it to subscribe groups of users to changes for one or more projects.

To use:

1. Download the latest build or build the solution yourself (you'll likely need to do the latter anyway as part of the project owner configuration).
2. Install to a web server (suggest your TFS web frontend).
3. In IIS, create an application pointing to the installed Alerts location (the URL doesn't matter). The account configured as the identity of the application pool requires access to the domain containing the users you want to notify.
4. Modify the web.config file to suit your environment (appSettings).
5. Modify the ProjectOwer.GetProjectOwnerEmailAddress () method to reference the projects in your environment (Project 1 should be changed to the name of your first project, etc).
6. Modify line 13 of the WorkItemChangedEvent.xsl file to point to your new web service URL.
7. Run bissubscribe.exe (C:\Program Files\Microsoft Team Foundation Server 2010\Tools) on your TFS web server to create a new subscription to this web service:

bissubscribe /eventType WorkItemChangedEvent /address http://localhost:8080/{my_app}/Alerts/WorkItemChanged.asmx /collection http://localhost:8080/tfs/my_collection
TF50001: Created or found an existing subscription. The subscription ID is 36.

An alert with no name will appear in the VS Alerts Explorer window; rename in it in VS, if you like, for easy identification.

Review the logs for troubleshooting.

For more information and links to some useful resources (e.g. dialling down the send notification delay while testing), consult my blog post on this tool:

http://blog.mediawhole.com/2011/01/centralising-global-tfs.html

I'd love to hear from you if you find this useful!

--Michhes

Last edited Jan 23, 2011 at 11:20 AM by michhes, version 5