开发者

Adding items to a global list in TFS via the SDK

开发者 https://www.devze.com 2023-01-11 20:11 出处:网络
I wish to add or list items from a global list in TFS 2010 via the TFS SDK. I 开发者_运维百科have discovered the following methods:

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?


  1. 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.
  2. 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

Adding items to a global list in TFS via the SDK

Adding items to a global list in TFS via the SDK

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号