Nick Kirchem, who works on the TFS web access team, recently answered a question on how email subscriptions on checkin alerts. The question was, how do I subscribe to checkin alerts not under a particular folder?
Here’s how to do it.
bissubscribe /eventType CheckinEvent /address someone@domain.com /deliveryType EmailHtml /server http://myserver:8080/tfs/DefaultCollection "'Artifacts/Artifact[@ArtifactType=\"VersionedItem\"][not(starts-with(translate(@ServerItem, \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\", \"abcdefghijklmnopqrstuvwxyz\"), \"$/devdiv/feature/build/qa\"))]' <> null"
Let’s break it down.
I recommend using the Alerts Explorer power tool rather than doing this by hand. However, in this case, the Alerts Explorer does not support this.
Nick has also written a feature for TFS 11 to allow you to edit alerts inside the product through the web interface. An early version of it is in the TFS 11 CTP release that came out in concert with the Windows’ //build conference. Here’s a screen shot of it. Note that you can only see it in the UI if you enable email in the TFS Administration Console. Since then he’s made it easier to use and made it so that you can administer other user alerts, if you are an administrator.
Related post: Adding a path filter to a CheckinEvent subscription using bissubscribe