Reporting Work Item Revisions - Read Reporting Revisions Get
使用包含已刪除專案的選項取得一批工作專案修訂
GET https://dev.azure.com/{organization}/{project}/_apis/wit/reporting/workitemrevisions?api-version=4.1
GET https://dev.azure.com/{organization}/{project}/_apis/wit/reporting/workitemrevisions?fields={fields}&types={types}&continuationToken={continuationToken}&startDateTime={startDateTime}&includeIdentityRef={includeIdentityRef}&includeDeleted={includeDeleted}&includeTagRef={includeTagRef}&includeLatestOnly={includeLatestOnly}&$expand={$expand}&includeDiscussionChangesOnly={includeDiscussionChangesOnly}&$maxPageSize={$maxPageSize}&api-version=4.1
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
organization
|
path | True |
string |
Azure DevOps 組織的名稱。 |
project
|
path |
string |
專案識別碼或專案名稱 |
|
api-version
|
query | True |
string |
要使用的 API 版本。 這應該設定為 '4.1' 以使用此版本的 API。 |
$expand
|
query |
傳回工作專案修訂中的所有欄位,包括預設不會傳回的長文字欄位 |
||
$max
|
query |
integer int32 |
要在此批次中傳回的結果數目上限 |
|
continuation
|
query |
string |
指定要從中啟動批次的浮水印。 請省略此參數以取得第一批修訂。 |
|
fields
|
query |
string array (string) |
要傳回工作專案修訂中的欄位清單。 省略此參數以取得所有可報告欄位。 |
|
include
|
query |
boolean |
指定是否應該傳回已刪除的專案。 |
|
include
|
query |
boolean |
只傳回工作專案的修訂,其中只有歷程記錄欄位已變更 |
|
include
|
query |
boolean |
傳回識別參考,而不是識別欄位的字串值。 |
|
include
|
query |
boolean |
只傳回工作專案的最新修訂,略過所有歷程記錄修訂 |
|
include
|
query |
boolean |
指定是否應該針對 System.Tags 欄位傳回標記物件。 |
|
start
|
query |
string date-time |
要作為修訂起點的日期/時間,所有修訂都會在此日期/時間之後發生。 無法與 'watermark' 參數搭配使用。 |
|
types
|
query |
string array (string) |
要篩選結果至特定工作專案類型的型別清單。 省略此參數以取得所有工作專案類型的工作專案修訂。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
成功作業 |
安全性
oauth2
Type:
oauth2
Flow:
accessCode
Authorization URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL:
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
Scopes
名稱 | Description |
---|---|
vso.work | 授與讀取工作專案、查詢、面板、區域和反復專案路徑,以及其他工作專案追蹤相關中繼資料的能力。 也授與執行查詢的能力,以及透過服務勾點接收工作專案事件的通知。 |
範例
Get a batch of work item revisions with identity references |
Get the first batch of work item revisions |
Get a batch of work item revisions with identity references
Sample Request
GET https://dev.azure.com/fabrikam/_apis/wit/reporting/workitemrevisions?includeIdentityRef=true&api-version=4.1
Sample Response
{
"values": [
{
"id": 3,
"rev": 8,
"fields": {
"System.Id": 3,
"System.AreaPath": "Fabrikam-Fiber-Git",
"System.TeamProject": "Fabrikam-Fiber-Git",
"System.Rev": 8,
"System.RevisedDate": "9999-01-01T00:00:00Z",
"System.IterationPath": "Fabrikam-Fiber-Git\\Release 1\\Sprint 1",
"System.WorkItemType": "Product Backlog Item",
"System.State": "Done",
"System.Reason": "Work finished",
"System.CreatedDate": "2014-03-18T17:17:06.857Z",
"System.CreatedBy": {
"id": "d291b0c4-a05c-4ea6-8df1-4b41d5f39eff",
"uniqueName": "Jamal Hartnett <fabrikamfiber4@hotmail.com>"
},
"System.ChangedDate": "2015-06-23T18:25:16.137Z",
"System.ChangedBy": {
"id": "d6245f20-2af8-44f4-9451-8107cb2767db",
"uniqueName": "Normal Paulk <fabrikamfiber16@hotmail.com>"
},
"System.Title": "Technician can submit invoices on Windows Phone",
"System.BoardColumn": "Done",
"Microsoft.VSTS.Common.ClosedDate": "2014-03-18T17:19:02.093Z",
"Microsoft.VSTS.Common.Priority": 3,
"Microsoft.VSTS.Common.BacklogPriority": 1000063244,
"WEF_6CB513B6E70E43499D9FC94E5BBFB784_Kanban.Column": "Done"
}
},
{
"id": 350,
"rev": 1,
"fields": {
"System.Id": 350,
"System.AreaPath": "Fabrikam-Fiber-Git",
"System.TeamProject": "Fabrikam-Fiber-Git",
"System.Rev": 1,
"System.RevisedDate": "9999-01-01T00:00:00Z",
"System.IterationPath": "Fabrikam-Fiber-Git",
"System.WorkItemType": "Epic",
"System.State": "New",
"System.Reason": "New epic",
"System.CreatedDate": "2015-08-25T21:54:46.06Z",
"System.CreatedBy": {
"id": "d291b0c4-a05c-4ea6-8df1-4b41d5f39eff",
"uniqueName": "Jamal Hartnett <fabrikamfiber4@hotmail.com>"
},
"System.ChangedDate": "2015-08-25T21:54:46.06Z",
"System.ChangedBy": {
"id": "d291b0c4-a05c-4ea6-8df1-4b41d5f39eff",
"uniqueName": "Jamal Hartnett <fabrikamfiber4@hotmail.com>"
},
"System.Title": "Mobile Experiences",
"System.BoardColumn": "New",
"System.BoardColumnDone": false,
"Microsoft.VSTS.Common.Priority": 2,
"WEF_DF2CD50AB7B849C795850408B629AB43_Kanban.Column": "New",
"WEF_DF2CD50AB7B849C795850408B629AB43_Kanban.Column.Done": false
}
}
],
"nextLink": "https://dev.azure.com/fabrikam/_apis/wit/reporting/workItemRevisions?continuationToken=813;350;1&includeIdentityRef=true&api-version=2.0",
"continuationToken": "813;350;1",
"isLastBatch": true
}
Get the first batch of work item revisions
Sample Request
GET https://dev.azure.com/fabrikam/_apis/wit/reporting/workitemrevisions?api-version=4.1
Sample Response
{
"values": [
{
"id": 1,
"rev": 1,
"fields": {
"System.Id": 1,
"System.AreaPath": "Fabrikam-Fiber-Git",
"System.TeamProject": "Fabrikam-Fiber-Git",
"System.Rev": 1,
"System.RevisedDate": "2014-03-18T17:17:05.76Z",
"System.IterationPath": "Fabrikam-Fiber-Git",
"System.WorkItemType": "Product Backlog Item",
"System.State": "New",
"System.Reason": "New backlog item",
"System.CreatedDate": "2014-03-18T17:16:56.25Z",
"System.CreatedBy": "Jamal Hartnett <fabrikamfiber4@hotmail.com>",
"System.ChangedDate": "2014-03-18T17:16:56.25Z",
"System.ChangedBy": "Jamal Hartnett <fabrikamfiber4@hotmail.com>",
"System.BoardColumn": "New",
"WEF_6CB513B6E70E43499D9FC94E5BBFB784_Kanban.Column": "New",
"System.Title": "Technician can check on parts orders on Windows Phone"
}
},
{
"id": 1,
"rev": 2,
"fields": {
"System.Id": 1,
"System.AreaPath": "Fabrikam-Fiber-Git",
"System.TeamProject": "Fabrikam-Fiber-Git",
"System.Rev": 2,
"System.RevisedDate": "2014-03-18T17:19:02.093Z",
"System.IterationPath": "Fabrikam-Fiber-Git",
"System.WorkItemType": "Product Backlog Item",
"System.State": "New",
"System.Reason": "New backlog item",
"System.CreatedDate": "2014-03-18T17:16:56.25Z",
"System.CreatedBy": "Jamal Hartnett <fabrikamfiber4@hotmail.com>",
"System.ChangedDate": "2014-03-18T17:17:05.76Z",
"System.ChangedBy": "Jamal Hartnett <fabrikamfiber4@hotmail.com>",
"System.BoardColumn": "New",
"WEF_6CB513B6E70E43499D9FC94E5BBFB784_Kanban.Column": "New",
"System.Title": "Technician can check on parts orders on Windows Phone",
"Microsoft.VSTS.Common.BacklogPriority": 1000000000
}
},
{
"id": 2,
"rev": 1,
"fields": {
"System.Id": 2,
"System.AreaPath": "Fabrikam-Fiber-Git",
"System.TeamProject": "Fabrikam-Fiber-Git",
"System.Rev": 1,
"System.RevisedDate": "2014-03-18T17:17:06.343Z",
"System.IterationPath": "Fabrikam-Fiber-Git",
"System.WorkItemType": "Product Backlog Item",
"System.State": "New",
"System.Reason": "New backlog item",
"System.CreatedDate": "2014-03-18T17:17:06.01Z",
"System.CreatedBy": "Jamal Hartnett <fabrikamfiber4@hotmail.com>",
"System.ChangedDate": "2014-03-18T17:17:06.01Z",
"System.ChangedBy": "Jamal Hartnett <fabrikamfiber4@hotmail.com>",
"System.BoardColumn": "New",
"WEF_6CB513B6E70E43499D9FC94E5BBFB784_Kanban.Column": "New",
"System.Title": "Technician can look for closest hardware store from Windows Phone"
}
}
],
"nextLink": "https://dev.azure.com/fabrikam/_apis/wit/reporting/workItemRevisions?continuationToken=3;2;1&api-version=2.0",
"isLastBatch": true
}
定義
名稱 | Description |
---|---|
Reporting |
傳回工作專案修訂中的所有欄位,包括預設不會傳回的長文字欄位 |
Reporting |
ReportingRevisionsExpand
傳回工作專案修訂中的所有欄位,包括預設不會傳回的長文字欄位
名稱 | 類型 | Description |
---|---|---|
fields |
string |
|
none |
string |
ReportingWorkItemRevisionsBatch
名稱 | 類型 | Description |
---|---|---|
continuationToken |
string |
|
isLastBatch |
boolean |
|
nextLink |
string |
|
values |
string[] |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應