Visual Studio Team Services

Programmatically retrieving and working with Global Lists in TFS

The Team Foundation API provides only a rough set of functionality to access a WorkItemStore’s GlobalLists, namely .ExportGlobalLists() and .ImportGlobalLists(…). The earlier returns a XmlDocument instance, the later takes such one to write the whole set of GlobalLists back.

There are no built-in & and strongly typed classes to retrieve and work with them in a more ‘natural’ way & therefore I added a little helper functionality to my JB.Tfs.Common library that wraps the xml parsing into two proper classes: a GlobalListCollection which holds 0 or more GlobalList instances.

Right now I only need and therefore added the reading part, but writing back is just as easily implemented. A fork & pull request on GitHub of course is quite welcome.

The Tfs.Common library itself is also available as a nice little NuGet Package at https://nuget.org/packages/JB.Tfs.Common or simply by entering:

Install-Package JB.Tfs.Common

.. in your Visual Studio Package Manager Console.

Discussion

Comments disabled.