mperrone

found this page

http://blogs.vertigosoftware.com/teamsystem/archive/2006/07/13/Automatic_email_notifications_when_a_work_item_is_assigned.aspx

I followed the instructions but I am not getting any emails. I added some logs but it doesn't even look like its even running on the server. These logs should be in windows\temp, right

I placed the application in the web services folder and added the subscription

Are there steps missing in this article The article is pretty old but I can't find something more current.



Re: Team Foundation Server - Work Item Tracking Automatic email when changing assigned to field...

Paul Hacker

If all you want is to have the person that is going to have the workitem assigned to them get an email you could just have them setup the out of the box alert that says
My work items are changed by others

Have them put in their email and they will get an alert when an email is assigned to them. Maybe easier than what you are doing and I know it works cause we use it.

-paul






Re: Team Foundation Server - Work Item Tracking Automatic email when changing assigned to field...

mperrone

The canned alerts are too generic. We do not want an email when any fields are changed. Take a look at the article to see what I mean.





Re: Team Foundation Server - Work Item Tracking Automatic email when changing assigned to field...

mperrone

I'm making some progress. The method is being executed but when I check my inputs (EventXml, TFSIdentityXml) - both are null. Has anyone successfully implemented this customization



Re: Team Foundation Server - Work Item Tracking Automatic email when changing assigned to field...

Morgan-Hill

I have this working. There was a couple of things you have to watch out for. Make sure you modify the service.cs file to identify the correct webservice namespace. i.e:

http://syrtfs01:8080/WebServices.

syrtfs01 of course will be renamed to your server name.

We used the tfsService account for email:

<appSettings>
<
add key="MailAddressFrom" value="tfsService@Infimed.com"/>

....

And of course correctly identify the mail server.

After unzipping, don't forget to make the folder (NotificationService) an application in IIS manager. I left it in the DefaultAppPool, but you could change that if you want.

Our BisSubscribe is:

bissubscribe /eventType WorkItemChangedEvent

/address http://syrtfs01:8080/notificationService/service.asmx

/server http://syrtfs01:8080

I had to play around with this a bit before I got it working but once you correctly set everything up it will work.

Kurt






Re: Team Foundation Server - Work Item Tracking Automatic email when changing assigned to field...

ogiepogi

hello,
to make sure I understand you, let me rephrase it...
You want to have an alert via email each time the workitem assigned to was changed to your name right

so by using the BisSubscribe.exe (follow the format) then put the following filter:

"CoreFields/StringFields/Field[ReferenceName = 'System.AssignedTO']/NewValue" = 'Your Name goes here'

note:
in order to add " (double quote) in the filter, use the escape sequence \" (slash double quote).

the exact filter to type in command prompt:

"\"CoreFields/StringFields/Field[ReferenceName = 'System.AssignedTO']/NewValue\" = 'Your Name goes here'"

this alert will be triggered each time the workitem's assignedTo was changed to your name. (it is name and not accountname. so if you have a Name: First User and your accountname: fuser, you will put the name First User in the filter.)

hope this helps...


this tool might help you...
http://blogs.vertigosoftware.com/teamsystem/archive/2007/02/08/Team_Foundation_Server_Event_Subscription_Tool.aspx





Re: Team Foundation Server - Work Item Tracking Automatic email when changing assigned to field...

mperrone

Found the problem. I'm a newbie with C# and realized I was ignoring the case-sensitive feature. Once I changed the subroutine/parameter names, it worked great. Why it worked doesn't make sense but now I know and will be more watchful the next time.

We will be using this customization in a number of areas.

Thanks for all the responses