:: thoughts on team system and more RSS 2.0
# Monday, 02 April 2007


A common issue when working with Team Foundation Server and work items is how changes in a work item can be notified to a user using standard email.


By using the BisSubscribe.exe tool (discussed in the previous post) we can use a command-line utility that adds subscribers to the TFS notification database. The tool can be used for setting up email notifications as well as notifications to a generic web service for application level integration. In this scenario we’ll use the email option.


So to register for a notification when a work item’s status changes we’ll use this command:


BisSubscribe.exe /eventType WorkItemChangedEvent /deliveryType EmailHtml /server http://localhost:8080 /address mathias@win2003 /filter """"PortfolioProject""" = 'Effective VSTS' AND ("""ChangedFields/StringFields/Field[ReferenceName='System.State']/OldValue""" <> """ChangedFields/StringFields/Field[ReferenceName='System.State']/NewValue""")"


Whenever someone changes the status of a work item TFS will produce a mail similar to the following:


About the author/Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2019
Mathias Olausson
Sign In
Total Posts: 100
This Year: 0
This Month: 0
This Week: 0
Comments: 65
All Content © 2019, Mathias Olausson
DasBlog theme 'Business' created by Christoph De Baene (delarou)