locked
Build Alerts - Alert Editor TFS Power Tools RRS feed

  • Question

  • Hi

    Issue:

    1. TFS power tool (2008/2010) allows you to see "Alert Editor" option in "Team" menu option in Team Explorer (2008/2010). There you can create alerts for like.. if someone checkins a file/code or a build completes with some status (failed/successful/etc), then giga.aks@himanshugardi.com will be notified for that event. Users/developers can create such alerts on their own machines i.e. to receive such notification emails about such events. Note: Alert Editor is different than "Project Alerts" option. Both do the same thing, but mechanism is different from user's GUI point.

    NOW, the SAD thing is, User A CANNOT see what user B has created in Alert Editor. i.e. IF user B created an some alerts say: "Send email to a person or group email id containing lot of developers/users" whenever a build is successful/fails/aborts/stopped OR a build completes with any state, then that email notification will be sent.

     Now consider the situation that user B is gone / left the company and everyone / especially SCM (software configuration mgmt/TFSAdmin team) starts getting email notification about "email bounced back" while trying to send "alert notification email" to "user B" then there is no way ...to tell, who actually set that alert which is sending these "bounced email notifications".

    Does anybody know how TFSAdmin/a user, can see the alerts created by other usres ????? AND... how to delete those specific alerts (which send email notifications to someone who left the company and you dont receive the BOUNCED email notifications anymore.

     

     

    Thanks.

    Arun Sangal

    Wednesday, December 29, 2010 9:59 PM

Answers

  • OK. found the solution. DON"T TRY THIS until you are working with your TFS Administrator. If you do that without consulting with TFS Administrator or TFS DBA, then your job will be in jeopardy.

     

    Log in to the TFS machine as the TFS Admin user (TFSSETUP) over remote desktop, and then browse to the following address in Internet Explorer:

    http://localhost:8080/Services/V1.0/EventService.asmx
    

    These are the Event Service web service methods. The first one you want to look at is the EventSubscriptions method:-

    http://localhost:8080/Services/V1.0/EventService.asmx?op=EventSubscriptions
    

    In the userid field, enter an asterisk (*) and then press invoke.

    This will then return a big list of all the event subscriptions in TFS - including the ones that allow parts of TFS to talk to other parts. If you scroll down, you will find your email subscriptions. Make a note of the ID's of the ones that you want to delete.

    Then go to the unsubscribe method:

    http://localhost:8080/Services/V1.0/EventService.asmx?op=UnsubscribeEvent

    Enter the ID of the notification (MAKE SURE you enter the correct ID, as if you enter a wrong ID and if TFS DB entry gets messed up, your name will be displayed in GOLDEN letters (you bet) outside your company and you'll be not allowed to enter your office next time) that you wish to remove and press invoke. Repeat for all the events that you wish to remove.

    Once you have removed the ones you don't want you can create different ones using the power tools etc.

    Hope that helps - Good luck. Thanks to MWoodward.

     

    Arun Sangal.

    Wednesday, December 29, 2010 10:03 PM

All replies

  • OK. found the solution. DON"T TRY THIS until you are working with your TFS Administrator. If you do that without consulting with TFS Administrator or TFS DBA, then your job will be in jeopardy.

     

    Log in to the TFS machine as the TFS Admin user (TFSSETUP) over remote desktop, and then browse to the following address in Internet Explorer:

    http://localhost:8080/Services/V1.0/EventService.asmx
    

    These are the Event Service web service methods. The first one you want to look at is the EventSubscriptions method:-

    http://localhost:8080/Services/V1.0/EventService.asmx?op=EventSubscriptions
    

    In the userid field, enter an asterisk (*) and then press invoke.

    This will then return a big list of all the event subscriptions in TFS - including the ones that allow parts of TFS to talk to other parts. If you scroll down, you will find your email subscriptions. Make a note of the ID's of the ones that you want to delete.

    Then go to the unsubscribe method:

    http://localhost:8080/Services/V1.0/EventService.asmx?op=UnsubscribeEvent

    Enter the ID of the notification (MAKE SURE you enter the correct ID, as if you enter a wrong ID and if TFS DB entry gets messed up, your name will be displayed in GOLDEN letters (you bet) outside your company and you'll be not allowed to enter your office next time) that you wish to remove and press invoke. Repeat for all the events that you wish to remove.

    Once you have removed the ones you don't want you can create different ones using the power tools etc.

    Hope that helps - Good luck. Thanks to MWoodward.

     

    Arun Sangal.

    Wednesday, December 29, 2010 10:03 PM
  • Hi Arun,

    Thank you for sharing your experience here! I thinks It will be very beneficial for other community members having the similar questions.

    Best Regards,


    Cathy Kong [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, December 30, 2010 2:24 AM
    Moderator