如何编写显示团队讨论计数的 VSTS 查询?

how to write a VSTS query that shows the teams discussion counts?

我们想编写一个查询来显示 VSTS 任务中用户每日评论的计数。我们该怎么做?

我们应该使用哪个API?

Work Item Comments REST API可以查询评论,例如:https://[account].visualstudio.com/DefaultCollection/_apis/wit/workitems/[work item id]/comments?api-version=3.0-preview.

因此,您可以构建一个应用来使用此 REST API 进行报告,您还可以自定义扩展以使用此 REST API 显示数据:Write your first extension for VSTS