使用REST API从VSTS获取所有工作项 [英] Get all workitems from VSTS using REST API

查看:83
本文介绍了使用REST API从VSTS获取所有工作项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用REST API从VSTS提取所有工作项.我在获取返回的每个工作项的数据

I'm working on fetching all the Workitems from VSTS using REST APIs. I come across this documentation Get data for each work item returned

这是一个POST方法,我们没有传递任何正文,它会返回文档中提到的所有工作项吗?

It's a POST method and we are not passing any body, will it return all the workitems as mentioned in the documentation?

谢谢, 西瓦

推荐答案

您可以使用如果您不希望所有版本都可以,请添加includeLatestOnly参数:

If you don't want to all revisions, you could add includeLatestOnly parameter:

GET https://{accountName}.visualstudio.com/{project}/_apis/wit/reporting/workitemrevisions?includeLatestOnly=true&api-version=5.0-preview.2

这篇关于使用REST API从VSTS获取所有工作项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆