Delete alert from TFS2010 - visual-studio-2010

I added an alert to TFS2010, that sends an email whenever someone checks in a file in a specific project. The alert works - I receive plenty of emails from the server. I want to remove the alert but cannot find any place to do it. Here is what I tried using VS2010:
In Team Explorer right click the team project collection -> Alerts Explorer. It shows an empty list. Clicking Refresh makes no difference. Screenshots of what I'm doing:
After refresh:
In the Team menu click Alerts Explorer. Same result as above.
In Team Explorer right click the team project -> Project Alerts... It shows "Check the alert you want to create". I don't want to create an alert. None of the items are checked.
In the Team menu click Project Alerts... Same result as above.
In Source Control Explorer right click the team project collection -> Alert on Change... It shows "Add Alert to Folder". That is not what I want to do. The same happens when right clicking on the project.
In Source Control Explorer right click the team project -> Alert on Change... Same result as above.

Turns out that phantom team alerts are a known problem. The solution:
Find the id in tbl_EventSubscription
Run BisSubscribe.exe:
C:\Program Files\Microsoft Team Foundation Server 2010\Tools>bissubscribe /unsubscribe /collection http://mytfsservername:8080/Tfs/DefaultCollection /id 51

Related

How to re-open code review?

I made a mistake while using Team Server Foundation. I had requested a code review and also added myself as a reviewer so I could add comments on each file. Once finished, I closed the review without realizing it would close it for everyone else.
How do I re-open a closed review? All it gives me is grayed out text or no available actions anywhere I try to open it (Source Control Explorer, Team Explorer, and Web).
You can't but you can still view the review.
In visual studio, in the Team Explorer panel click on Pending Changes.
Click on Action and select Find Shelvesets.
Enter your username in the research box.
In the list click on the code review you want to open.
The view as change for the Shelvesets Details.
In the Related Work Items section. Open the work item for the review.
And there it is.
You cannot re-open a code review, you will need to create a new one.

Outlook using rules not showing new message alert in system tray

I created a few rules for Microsoft Outlook 2010, that specific mails go to specific folders. This works fine, but I don't get an alert in system tray when I have new mails.
Is there a way to fix this?
According to the sources I've listed below, this seems to not be possible, and it seems to be expected behavior of MS Office since 2007.
http://answers.microsoft.com/en-us/office/forum/office_2010-outlook/show-an-envelope-icon-in-the-taskbar-and-play-a/7c5608af-dca4-46c7-ad40-bd959a2c1402
http://www.msofficeforums.com/outlook/6140-modifying-rule-show-new-mail-envelope-task.html
http://www.howto-outlook.com/faq/missingenvelope.htm
I would love for someone to prove me wrong, because I would like to have an envelope as well. Wish MS would at least give an option to turn this setting on and off.
It is possible with an additional rule.
Open the Rules and Alerts dialog;
Outlook 2003 an Outlook 2007: Tools-> Rules and Alerts… (press OK if you get an HTTP warning)
Outlook 2010: tab Home-> group Move-> button Rules-> Manage Rules & Alerts…
Outlook 2013: File/Home -> Manage Rules and Alerts
Button New Rule…
Select "Start from a blank rule" and verify that "Check messages when they arrive" is selected.
Press Next to go to the Conditions screen.
Verify that no condition is selected and press Next.
A warning will pop-up stating that this rule will apply to all messages. Press "Yes" to indicate that that is correct.
Select the action "display a Desktop Alert".
Press Finish to complete the rule.
If needed move the "display a Desktop Alert" rule all the way to the top.
Source: https://social.technet.microsoft.com/Forums/office/en-US/df4b0309-beb0-4eb8-9e90-e06214e5c1bf/notifications-envelope-not-showing-for-subfolders-using-rule-move-to-folder?forum=outlook
I just added the Outlook 2013 part, because this old question/problem is still relevant in the current version where I use this mechanism successfully.

Is there a way to show the current TFS workspace in Visual Studio?

I'm looking for a way to have the current TFS workspace displayed in Visual Studio.
It's visible when I open the Source Control Explorer (or Pending Changes), but I want it to be visible too when I'm editing code. So for example showing it in the toolbar, or in the window titlebar, or in the bottom status bar, doesn't matter as long as I can see it with a single glance.
Any tips?
You can use the "Rename Visual Studio Window Title" extension https://visualstudiogallery.msdn.microsoft.com/f3f23845-5b1e-4811-882f-60b7181fa6d6 and use the [workspaceName] attribute. Hope it helps.
There is a add on that shows this info, you can dock it somewhere :
http://visualstudiogallery.msdn.microsoft.com/384a4952-6b6f-4391-bc59-1b2bd38e1baf
There are a couple of options to do this without an additional plugin.
Use the Properties view
Select the solution, a project, or any file in Solution Explorer
Press F4 to go to the Properties view. The full path to your solution will be shown.
Note that right-clicking the solution or project and selecting Properties (Alt-Enter) will take you to the Properties Pages which doesn't have the information you want.
Use the Source Control Explorer
Opening Source Control Explorer will show you the last accessed workspace. Most of the time, this will be the workspace for the solution you are working on. However, if you have had two Visual Studio sessions open for different workspaces, I have seen the first VS session switch to the workspace of the other VS session.
Use the Pending Changes view
Pending Changes will show the workspace just under the header for the view.
You can get to Pending Changes through:
Team Explorer => Pending Changes
View => Other Windows => Pending Changes
Hover the mouse over an open file, the tooltip will show the full path to the file.

Is there a way to show the TFS changeset number after a check-in?

Is there a way, with power tools or other extensions, to make it so that the changeset number is be displayed on an alert?
Currently it displays on the status bar, but disappears after a while, or at least make this more prominent?
Output from TFS commands shows up in Visual Studio's Output window, but you need to change the "Show output from" dropdown to "Source Control - Team Foundation". Check-ins will produce output like:
Changeset 1234567 successfully checked in.
You can setup alerts in TFS which sends you an email with the checkin information, including the changeset number. There is an limited alert editor shipped with visual studio (see in the menu Team -> Project Alerts). You can choose the option "Anything checked in"
There are also the power tools which give an editor with more options. You can then filter also on user name. But be aware that everybody should set up their own alert.

Is there a tool for emailing Shelveset's and History items from within Visual Studio Team System?

We are using Team Foundation Server for our source control system in Visual Studio. Although we don't do a lot of pair programming, we do have all of our code changes peer reviewed in a process like this:
write code
shelve the code or check it in (if it's low risk)
send an email to a team member with the shelveset name or changeset number (getting the changeset number requires bringing up the History list for the project).
team member receives email, goes to Visual Studio
if it's a shelveset:
bring up the Pending Changes window
press Unshelve button, to bring up the Unshelve dialog
enter the sender's name in the Owner Name text box, and press Find to list the user's shelvesets
searches for the shelveset to find the correct name (usually by ordering my Shelveset Name), and press Details... button to bring up the details
If it's a changeset:
bring up the Source Control Explorer window, and hit the "History" button to bring up the history list
Locate the correct changeset number, and open the details.
Does anyone know of a tool that would allow us to do one or both of these?:
simply select a changeset or shelveset and hit "Send Email", which would either ask for the recipients and send the email, or bring up Outlook with infomration from the item prepopulated
upon receiving the email, link directly to visual studio and the appropriate changeset/shelveset item.
Have you tried the latest TFS power tools from Microsoft? The "team members" feature could help.
There's a Code Review module in the latest TFS Sidekicks.
Several other add-ons (free & commercial) are surveyed here: http://jb-brown.blogspot.com/2009/01/team-system-code-review-presentation.html
There is a rich event model, most of which is not directly exposed in the UI.
In the UI you can get check in emails, but that is about it. The TFS SDK includes information on working, from the command line, with the full event model.
However I don't know if any events associated with shelve sets are included, you can see the schemas for defined events in the folder "‹TFS Install›\Web Services\Services\v1.0\Transforms" on the TFS server.
There are two options on an event being raised, and your filter matching: (1) send an email (with a transform to create the content), (2) call a web service.

Resources