从VSTS获取工作项 [英] Get Workitems from VSTS

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

问题描述

我在获取所有工作项/任务以及谁是受让人方面遇到了麻烦.

I'm having some troubles to get all workitems/tasks and who is an assignee.

根据此 answer 可以使用报告工作获取任务,但是检索全部.

According to this answer is possible get the tasks using the report work, but is retrieving absolutely all.

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

是否可以检索 id 标题是受让人?

Is possible retrieve the id, title and who is an assignee?

推荐答案

您可以在api中添加参数 fields = System.Id,System.Title,System.AssignedTo :

You could add parameter fields=System.Id,System.Title,System.AssignedTo in the api:

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

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

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