TFS2015:全局列表的 REST API [英] TFS2015: REST API for global lists
问题描述
我正在开发一个自定义仪表板小部件,我必须在其中读取全局列表,但我找不到用于此类操作的任何 REST API 方法.
有什么想法吗?
您都可以 exportWorkItemTypeDefinition() 使用其余客户端的方法.
这个方法有三个参数:
<块引用>- 项目:字符串.可选的.项目 ID 或项目名称
- 类型:字符串.可选.
- exportGlobalLists:布尔值.可选.
将project"和type"指定为null",将exportGlobalLists"指定为true",您将导出包含全局列表的全局工作流.
<小时>您仍然可以使用witadmin命令行工具来实现
显示全局列表的名称
witadmin listgloballist/collection:http://AdventureWorksServer:8080/tfs/DefaultCollection
导出全局列表的定义
witadmin exportgloballist/collection:http://AdventureWorksServer:8080/tfs/DefaultCollection/f:C:mygloballists
源链接:管理工作项类型的全局列表>
I'm developing a custom dashboard widget where I have to read from a global list but I couldn't find any REST API method for this kind of operation.
Any ideas?
You can all exportWorkItemTypeDefinition() method using rest clients.
There are three parameters for this method:
- project: string. Optional. Project ID or project name
- type: string. Optional.
- exportGlobalLists: boolean. Optional.
Specifying "project" and "type" to "null" and "exportGlobalLists" to "true", you will get the global workflow exported with global lists included in it.
You can still use the witadmin command-line tool to achieve
Display the names of global lists
witadmin listgloballist /collection:http://AdventureWorksServer:8080/tfs/DefaultCollection
Export the definition of global lists
witadmin exportgloballist /collection:http://AdventureWorksServer:8080/tfs/DefaultCollection /f:C:mygloballists
Source Link: Manage global lists for work item types
这篇关于TFS2015:全局列表的 REST API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!