![](/img/trans.png)
[英]Azure Devops, how to add “Work Item type” in devops backlog
[英]Is there a way to pickup backlog item data from the Azure DevOps API?
We are using the Azure DevOps API for many features in our web application built with C# (.NET CORE) and JavaScript (React).
我们想做一个 API GET 从我们的 Azure DevOps 存储库中获取我们的积压项目数据,但是找不到任何文档,也找不到有关如何实现此目的的说明。
我们尝试了以下两种服务,但都没有提供我们想要获取的信息:
澄清一下,我们感兴趣的是待办事项的数据。不是待办事项本身或待办事项工作项。 下图展示了我们希望从 Azure DevOps 服务中提取的待办事项项目以加载到我们的应用程序中:
下图是您单击这些积压项目之一时显示的信息,我们特别希望获取并加载到我们的应用程序中的这些数据:
如果有人知道如何做到这一点,请告诉我们。
提前谢谢了!
As workaround, you can first get the work items' id through Backlogs-Get Backlog Level Work Items
rest api, and then get the detailed data of the items through Work Items-Get Work Items Batch rest api.
POST https://dev.azure.com/{organization}/{project}/_apis/wit/workitemsbatch?api-version=6.0
示例请求正文:
{
"ids": [
297,
299,
300
],
"fields": [
"System.Id",
"System.Title",
"System.WorkItemType",
"Microsoft.VSTS.Scheduling.RemainingWork"
]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.