Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subscribing to file check ins with tfs 2010 alerts

Tags:

tfs

I am trying to setup alerts to the team when a specific file is checked into TFS, have have found some info on this using tfs 2008, which leads me to believe the following filter should work:

'Artifacts/Artifact[starts-with(@ServerItem, $/Matrix/Dev/Matrix/Applications/Matrix.UI/Web.Config)]' <> NULL

But this just give me an Invalid Token error, any ideas how i get this working in 2010?

Thanks.

like image 406
McC Avatar asked Dec 01 '25 13:12

McC


1 Answers

With installed Power Tools, right-click in Team Explorer on the upmost node (the icon for the TeamCollection) & open "Alerts Explorer".
Generate a new CheckIn alert:
enter image description here
now set the source control pathto the files you 're interested in:
enter image description here

This generated a Filter Expression = 'Artifacts/Artifact[starts-with(translate(@ServerItem, "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz"), "$/foo/bar.cs")]' <> null

like image 159
pantelif Avatar answered Dec 05 '25 14:12

pantelif



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!