Is in the Team Explorer the pending changes window customizable - tfs

When you open a changeset in Visual Studio 2013 the details are displayed in the Team Explorer window. In the Related Work Items area are displayed all work items associated with that changeset.
On mouse-over that work item you can see the details (title, state, assigned to, ...) of the work item in a small window.
It's possible to customize that window?
I'd like to display some custom fields that we have in the task work item.

There's no officially supported way to do that (no public API). If you are willing to accept the risk of your extension breaking in a future update, you can certainly hook in and modify it.

Related

Is it possible to customize TFS to provide user friendly forms for registering bugs?

I need to let users register bugs similar to how it is done in Bug tracking systems.
I'd like to create user friendly form with a layout which will guide user. Standard Create New Workitem interface is too overloaded for users.
Today we manually look through inbox and register bugs in TFS ourselves. This is really a pain. Users often do not mark the message in subject as a bug. You need to read it to understand user has a problem. Sometimes you need to ask them about the criticality level and what the deadlines for fixing it are.
It is easy to miss important message and this process distracts from main activity.
(Based on you having Visual Studio and having already connected to TFS in there)
In Visual Studio, via the menu, choose Tools > Process Editor > Work Item Types > Open WIT from server
EDIT: You will need to install the Microsoft Visual Studio Team Foundation Server 2015 Power Tools Extension in Visual Studio to gain access to that menu option above
You will then be presented with a popup box. At this point you will need to navigate to the Project Collection you wish to make changes in. Once selected you will then be presented with a list of forms you can edit. e.g. Task, Bug, Code Review etc.
If you select Task you will then be taken to a form where you will have 3 tabs. Fields, Layout and workflow. From here you have a certain level of customisation available.
I found a couple of articles (below) around customising templates. One is for TFS 2015, the other is for TFS 2013.
http://blogs.msdn.com/b/visualstudioalm/archive/2015/12/10/adding-a-custom-field-to-a-work-item.aspx (TFS 2015)
https://www.simple-talk.com/dotnet/visual-studio/customizing-team-foundation-server-2013/ (TFS 2013)
NOTE: Menu option Open WIT from server will make changes directly on the server. There are other option where you can make changes locally, then import those changes in. The above is just a way to get you to the screen to customise the forms so that you can take a look around.

Lock the contents of a TFS work item

We are using TFS 2010 and use work items and the changesets that are linked to them as the unit of change that gets deployed. I would like to put a work item into a "frozen" state, preventing any new changesets from being linked to it. Is this possible?
You can't lock individual Work Items so your best bet would be to set security on a particular area path and remove edit permissions to Work Items in that area for the required users.
When a Work Item is frozen it is put into that area and normal contributors wouldn't have access to edit it.
Team Foundation Server 2010 Permissions
You can set these permissions by right-clicking the project in Team
Explorer, clicking Areas and Iterations, and on the Area tab, clicking
Security.

How to View a TFS Work Item in MS Project in a Visual Studio-like Form

I'm using MS Project to manage my TFS work items. The standard Summary Task Information window that comes up when double-clicking on a task is slightly inadequate when dealing with TFS work items. It lacks the standard work item view that we're accustomed to within Visual Studio, and that MS has elegantly rendered within visualstudio.com.
I noticed today that if I set a task field to invalid value, then Work Item Publishing Errors window comes up and there's a nifty little button Edit Work Item... that displays the work item in the standard VS view. Now I'm searching all over Project to figure out how to edit a work item in this view without first having to cause a publishing error. There must be some button I've overlooked in Project that opens a TFS work item up in the VS-like view, isn't there?
It's currently not possible and its also not intended to be used that way. The UI in Ms Project is the native Project UI and is mant to receive the updates to the plan and to layout the items into a new plan.
Managing the contents of the items is all meant to be done from the Web UI. With the new Work Item UI you'll be redirected to the Web whenever you need to edit a work item. Visual Studio, Excel and Project won't show you a native editor window anymore.
You'll be able to directly to the work item editor on the web from the team tab. When connecting to older versions of TFS, this would open the Work Item editor:

TFS Alerts for changes to work items linked to a review

Is it possible in TFS 2010 to create an alert when a change is made to a work item linked to a review work item?
I would like the reviewer to be notified of any changes made by a developer to the underlying work item to which the review work item is linked.
We are running TFS 2010 on VS 2008. Thanks.
It's not possible using any out of the box tools. You can use the TFS Power Tools to create a custom work item alert, but the queries that uses to filter alerts are flat queries and you can't do any processing about their parents.
If you really want to do this you could create your own utility program. It would have to subscribe to the work item changed event and for each event check the linked work items to see if the changed work item is linked to a review item or not. If it is you can take whatever action you want to alert people that something happened, but the "alerts" would be coming from your utility, not TFS.

TFS 2008 : How to make Source Control Explorer show "ADD" operations for other users?

In the visual studio Source Control Explorer window, I can see my own "add" operations, but do not see the "add" operations for other users. I can see all other operations (rename, edit, etc), but cannot see any add's.
Anyone know how to turn this on, or how to view add's otherwise?
I don't think there's a way to view other people's pending adds. The items shown in SCE represent the latest state on the server, modulo any changes that are pending in the currently selected workspace. In other words, if you switch to another workspace in the dropdown at the top, you won't even see your own pending adds.
Closest substitute I can think of is the "Team Members" feature introduced in the Fall '08 power tools. In short, you can quickly view anyone's pending changes (along with shelvesets & checkin history) by right clicking on their name in Team Explorer.

Resources