index > Team Foundation Server - Version Control > Email notification per folder per user

Email notification per folder per user


Hello!

Is there anyway we can restrain the email notifications for only certain folders in the Team Project?

Also, not the every member of the development team checkin but just a particular developer checkin should instigate these email notifications.

Thanks!

sunny123

I tried the bisubscribe event for filtering through the folder level. Although the command does show that the new event has been created, I don't get any email alerts.

This is the command I used:

Bissubscribe /eventType CheckinEvent /address <myemailaddress> /deliveryType EmailHtml /server vstfdev /filter "'Artifacts/Artifact[starts-with<@ServerItem, "$TP/folder1/folder2")] <> NULL'"

I ensured that my smtp server is the right one.

I was not able to filter it by user though.

Please assist!

sunny123

It looks like you may be missing a '/' in your server path. Server paths take the form "$/TeamProject/folder/folder" rather than "$TeamProject/folder/folder".

Hope this helps-

Cheers,
Adam




This posting is provided "AS IS" with no warranties, and confers no rights.
Adam Singer MSFT

I'm sorry Adam, but that doesn't resolve my issue.

It's actually:

Bissubscribe /eventType CheckinEvent /address <myemailaddress> /deliveryType EmailHtml /server vstfdev /filter "'Artifacts/Artifact[starts-with<@ServerItem, "$/TP/folder1/folder2")]' <> NULL"

I did subscribe with / sign, I mistyped it when posting on the forum. Any other ideas?

sunny123

Are there any errors in the event logs related to event notification from TFS? If so, you may want to check the online documentation on configuring an SMTP server and e-mail notification settings here.

Best of luck-

Cheers,
Adam




This posting is provided "AS IS" with no warranties, and confers no rights.
Adam Singer MSFT

The event log has errors related to Team Foundation Error Reporting, but not event notification.

The SMTP server settings have also been verified.

If I modify the checkin event on the client side by going to Project Alerts-->Anything Checked In, I get email notifications for any checkins in the entire Team Project.

sunny123

Here's the command line that I used to configure an email notification for a path.  I've changed the email address (someone@microsoft.com), the server name (http://MyVstfat01:8080), and the path ($/TeamProject/A) from their original values, but it's otherwise what I've used to create a successful subscription.

Give this a shot.

Bissubscribe /eventType CheckinEvent /address someone@domain.com /deliveryType EmailHtml /server http://MyVstfat01:8080 /filter "'Artifacts/Artifact[starts-with(@ServerItem, \"$/TeamProject/A\")]' <> null"

Regarding filtering by particular devs, you'll want to filter by Owner for that.  I didn't test filtering by Owner, so I won't claim that it's exactly correct (I may not have gotten the quoting right).

Bissubscribe /eventType CheckinEvent /address someone@domain.com /deliveryType EmailHtml /server http://MyVstfat01:8080 /filter "'Artifacts/Artifact[starts-with(@ServerItem, \"$/TeamProject/A\")]' <> null AND 'Owner' <> 'SomeDomain\SomeUser'"

Buck




http://blogs.msdn.com/buckh
Buck Hodges

Hi Buck!

Still having trouble getting email alerts.

The command:

Bissubscribe /eventType CheckinEvent /address someone@domain.com /deliveryType EmailHtml /server http://MyVstfat01:8080 /filter "'Artifacts/Artifact[starts-with(@ServerItem, \"$/TeamProject/A\")]' <> null" gives an error

TF50003: Unrecognized command-line argument: <>

TF50003: Unrecognized command-line argument: NULL

Failed to subscribe event: TF50304: There is a syntax error in the subscription condition. Check the syntax..

However, when I tried

 Bissubscribe /eventType CheckinEvent /address someone@domain.com /deliveryType EmailHtml /server http://MyVstfat01:8080 /filter "'Artifacts/Artifact[starts-with(@ServerItem, "$/TeamProject/A\")]' <> null"

The subscription was created successfully. But, checkin event didn't send out an email. 

sunny123

Hi sunny:

It seems that we have tried everything we thought of so if possible can you contact tech support and see if they can help you. Mention or reference this thread so they can contact us and we can then work to troubleshoot your setup.

thanks, mario




MSFT
Mario Rodriguez
reply 9

You can use google to search for other answers

 

More Articles

Merge error: TF14087 "Not all of the deletion is being undel...
Testing Policy completion
Project structure in TFS
Foundation server Proxy
Custom check-in policies through FxCop
Using Visual Studio 2005 Source Control
VS Error Setting Assembly Information
Dropping Files into Source Controlled Projects Fails Checkout
Feature request - Show labels in the history viewer....
Team projects placed in folders
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Keyword Expansion
ICommonStructureService CreateProject
Migrate sourcegear vault to TFS?
Version Control Small Issue
Identifying labels
Finding Other Checkouts
Sourcecode corruption
Readd of a project which was bind to sou…
Problem with source control (Data is Nul…
Question on Team Foundation Server Versi…
Really Delete from Source Control
Best Practices
Msscci provider 1.1 is out!
Lock Project recursively
Discrepancy when files are deleted

Hot Articles

TFS and Enterprise Architect 6.1
Unique filenames?
Converting VSS API scripts to TF
VS.NET 2003 and Team Foundation Server
Latest updates are reflected to the server
Database Size limits
Slow VS 2005 performance
Error in unshelve - 'Cannot insert null …
Re: Can't undo CreateTeamProjectFolder()
Roll back to a file version / Delete an …
Putting SQL Server DB Objects under Vers…
Managing source tree changes with TFS...
Restricting access to older changesets /…
Sharing workspaces and working folders b…
automatic check out

Recommend Articles

Open File for edit in Team Version Contr…
Baseless merge No Content changes not au…
Check In to Branch But Ends up in Trunk
Deep history - anyway to get it all?
Project heirarchies in TFS
Getting latest version...
Merging of files which have not been bra…
Search and delete
Migrate from ClearCase to TFS
There was an error looking up the SID
Proxy Configuration for Dummies
Checking in Solution not including all f…
Create new root folder?
Recomendation for common external assemb…
Re: Visual studio locking up when doing …