:: thoughts on team system and more RSS 2.0
# Monday, April 02, 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:

 

Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview
News
About the author/Disclaimer

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

© Copyright 2009
Mathias Olausson
Sign In
Statistics
Total Posts: 77
This Year: 1
This Month: 1
This Week: 0
Comments: 31
All Content © 2009, Mathias Olausson
DasBlog theme 'Business' created by Christoph De Baene (delarou)