← all posts

TFS Work Item Visualizers

Gordon Beeming
Gordon Beeming

In my last post (Introduction to DotNet Pretty) I mentioned that I would be added more visualizers to DotNet Pretty soon 🙂. Today I finally managed to get around to that and added some visualizers for TFS Work Items.

3 new visualizers were added 2 debugger display visualizers and 1 debugger visualizer. The first is for Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemType and just displays the Name of the Work Item Type

WorkItemType Debugger Display Visualizer
WorkItemType Debugger Display Visualizer showing the Name of the Work Item Type

The next  one added was for Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem and that displays the Status, Id and Title of a work item which is awesome for viewing the results of a query during debugging 🙂.

WorkItem Debugger Display Visualizer
WorkItem Debugger Display Visualizer showing Status, Id and Title of a work item

Now having the above is very useful but drilling down into fields was a nightmare so I decided to create a nice visualizer for Work Item which would show you the work item on a form as it would be inside Visual Studio. You simple click the little arrow next to the value and then click on View Work Item

View Work Item Debugger Visualizer
View Work Item Debugger Visualizer option in Visual Studio
 

and then you will notice that your life has just been changed 🙂. Any links you click on from within this window will open in the web access and not in another dialog as you might expect.

Work Item Visualizer Window
Work Item Visualizer window displaying a work item form

This work item will show as it is at the current point in the code to the best of the visualizers abilities 🙂, in the case above I altered the title just before I opened the visualizer and it kept it's new value as expected 😁.

Work Item Visualizer with altered title
Work Item Visualizer showing an altered title reflecting changes in code

I have tested this on both On Premise TFS and Online with VSO. The On Premise version did give an issue about COM which I'm hoping is just an issue on my machine/instance but will investigate anyway

COM Exception in Work Item Visualizer
COM Exception encountered with On Premise TFS in Work Item Visualizer

I know this is going to help me speed working with the TFS API and I'm hoping it's useful to others as well 😁.

Gordon Beeming
Gordon Beeming

Father • Husband • Triathlete • SSW Solution Architect

Related posts