Notification - Closed task  
Author Message
Simon Gorski





PostPosted: Team Foundation Server - Work Item Tracking, Notification - Closed task Top

Hi,

is there a way to get notifications, if someone close the task

regards

Simon




Visual Studio Team System22  
 
 
Sagar Sura





PostPosted: Team Foundation Server - Work Item Tracking, Notification - Closed task Top

In V1, if the task is assigned to you or you changed it then you get the notification. We cannot customize project alerts in currentl release. To work around this, everyone can add your email ID in addition to his/her email ID in Project alerts. Or a group email ID can be given in Project alerts.

where team is the groupmail for all of you.

Thanks

Sagar



 
 
Simon Gorski





PostPosted: Team Foundation Server - Work Item Tracking, Notification - Closed task Top

Yes, but there is the problem. - If I give someone a task, I assign the task to him, and if he close the task, the task is not changed by others!

So I have first always set the task to me

regards

Simon



 
 
Sagar Sura





PostPosted: Team Foundation Server - Work Item Tracking, Notification - Closed task Top

I agree with you. Let me talk to some one else in my team. I will get back to you soon

Thanks

Sagar



 
 
Naren Datha - MSFT





PostPosted: Team Foundation Server - Work Item Tracking, Notification - Closed task Top

Simon,

You can create custom subscriptions using BisSubscribe.exe tool and give a custom filter to do it. If you search for bissubscribe in net you can get lots of info on it.

To get the schema for WorkItemChangedEvent and to build filter, check

http://blogs.vertigosoftware.com/teamsystem/archive/2006/07/03/Subscribing_to_Team_Foundation_Server_Events.aspx

Pete's blog has much details on creating subscriptions & troubleshooting: http://blogs.msdn.com/psheill/

I hope this helps. Below is the event filter we use in UI for "mail when my items changed by others" - if you need an example:

"PortfolioProject" = '<Project>' AND ("CoreFields/StringFields/Field[ReferenceName='System.AssignedTo']/OldValue" = 'Naren Datha' OR "CoreFields/StringFields/Field[ReferenceName='System.AssignedTo']/NewValue" = 'Naren Datha') AND "CoreFields/StringFields/Field[ReferenceName='System.AuthorizedAs']/NewValue" <> 'Naren Datha'



 
 
Simon Gorski





PostPosted: Team Foundation Server - Work Item Tracking, Notification - Closed task Top

Hello!

thanks a lot! - I will try that.

regards

Simon



 
 
Simon Gorski





PostPosted: Team Foundation Server - Work Item Tracking, Notification - Closed task Top

Hi!

I have tried now, but is the WorkItemChangedEvent Item the right event if I close the task

regards Simon



 
 
Naren Datha - MSFT





PostPosted: Team Foundation Server - Work Item Tracking, Notification - Closed task Top

Yes, I think your expression will look something like this:

"PortfolioProject" = 'cx' AND "CoreFields/StringFields/Field[ReferenceName='System.State']/OldValue" <> 'Closed' AND "CoreFields/StringFields/Field[ReferenceName='System.State']/NewValue" = 'Closed'

One of my past colleagues created a tool to generate such expressions from an UI, and I hope to post that soon in my box to help creating such expressions easy.



 
 
Simon Gorski





PostPosted: Team Foundation Server - Work Item Tracking, Notification - Closed task Top

Ok, I thought if i leave the expression empty, the service is always executed by the event_type WorkitemChangedEvent

regards

Simon