Adding items to a global list in TFS via the SDK
I wish to add or list items from a global list in TFS 2010 via the TFS SDK.
I 开发者_运维百科have discovered the following methods:
XmlDocument WorkItemStore.ExportGlobalLists()
void WorkItemStore.ImportGlobalLists(XmlElement listsElement);
void WorkItemStore.ImportGlobalLists(string lists);
Which appear to export/import all the global lists as a single XML document.
Is there any way to just update a single global list (i.e. adding/removing an individual item) as opposed to fetching or replacing the entire set of global lists.
Also, is there anywhere within the TFS user interface that individual user can make changes to a global list - or is this not something a user is expected to do?
- There is currently no way to add a single item to a global list. You need to Export the entire list, make you changes and then import that list back into TFS.
- See Edwalds post for a UI to edit the Global lists
The TFS Power Tools (http://visualstudiogallery.msdn.microsoft.com/en-us/3e8c9b68-6e39-4577-b9b7-78489b5cb1da) have a global list editor.
You can start it from the Tools menu
精彩评论