使用Analytics服务了解工作项在特定列中花费了多少时间

时间:2018-12-18 13:54:01

标签: azure-devops odata azure-devops-rest-api

我在Azure Devops的看板板由以下几列组成:

积压|分析发展历程测试质量检查|完成|部署

我想知道一个工作项在特定列中花费了多少时间。如何使用Google Analytics(分析)服务获取此信息? 有人知道如何建立查询吗?

  
 https://analytics.dev.azure.com/{OrganizationName}/{ProjectName}/_odata/{version}
/WorkItemBoardSnapshot?$apply=filter(??)
/filter(BoardLocation/BoardName eq 'Stories' and BoardLocation/Team/TeamName eq '{teamName}')
/groupby((??), aggregate(??))

预期结果:

WorkItemId | Title         | Days Analysis | Days Development | Days Test QA 
   3021    | As a user I.. |       0.9     |       4.7        |     1.2      
   3291    | As a magn I.. |       2.1     |       3.1        |     0.5
{
"value": [
    {
      "WorkItemId": 3021,
      "Title": "As a user I ..."
      "DaysAnalysis": "0.9",
      "DaysDevelopment": "4.7",
      "DaysTestQA": "1.2"
    },
    {
      "WorkItemId": 3291,
      "Title": "As a magn I ..."
      "DaysAnalysis": "2.1",
      "DaysDevelopment": "3.1",
      "DaysTestQA": "0.5"
    },
}

0 个答案:

没有答案