无法使用 odata 在 VSTS 中下载 "Scrum tasks" 的更改历史记录和讨论详细信息

Unable to download the change history and the discussion details of "Scrum tasks" in VSTS using odata

我不太清楚如何在 VSTS 中获取更改历史记录和讨论详细信息。我查看了 Workitems 和 Work Item Revisions 但没有从中获得任何与历史或讨论相关的数据。

PFB 使用的 odata 格式 url -

https://analytics.dev.azure.com/{OrganizationName}/{ProjectName}/_odata/{version}//WorkItemRevisions?
  $filter=WorkItemId eq {Id}
  &$select=WorkItemId, Title, State

https://analytics.dev.azure.com/{OrganizationName}/{ProjectName}/_odata/{version}//WorkItems?
  $filter=WorkItemId eq {Id}
  &$select=WorkItemId, Title, State

根据我的测试,我们只能使用 odata 获取 更改历史记录,但无法获取讨论历史记录:

例如:

https://analytics.dev.azure.com/{OrganizationName}/{ProjectName}/_odata/v1.0/WorkItemRevisions?$filter=WorkItemId eq 109&$select=WorkItemId, Title, State,Revision,RevisedDate,Reason,StateChangeDate

{
    "@odata.context": "https://analytics.dev.azure.com/{OrganizationName}/{ProjectName}/_odata/v1.0/$metadata#WorkItemRevisions(WorkItemId,Title,State,Revision,RevisedDate,Reason,StateChangeDate)",
    "value": [
        {
            "WorkItemId": 109,
            "Title": "0329Task2",
            "State": "To Do",
            "Revision": 7,
            "RevisedDate": "2018-07-09T14:02:01.473Z",
            "Reason": "New task",
            "StateChangeDate": "2018-03-29T02:29:36.91Z"
        }, 
       ...
       ...
       ...
       ...

要获取讨论历史记录,您可以使用 REST API (Revisions - List):

GET https://dev.azure.com/{organization}/_apis/wit/workItems/{id}/revisions?api-version=4.1

Get a list of all discussion history:

GET https://dev.azure.com/{organization}/_apis/wit/workItems/109/history