共用方式為


Builds - Get Build Work Items Refs

取得與組建相關聯的工作專案。 只會傳回相同專案中的工作專案。

GET https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/workitems?api-version=7.1-preview.2
GET https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/workitems?$top={$top}&api-version=7.1-preview.2

URI 參數

名稱 位於 必要 類型 Description
buildId
path True

integer

int32

組建的識別碼。

organization
path True

string

Azure DevOps 組織的名稱。

project
path True

string

專案識別碼或專案名稱

api-version
query True

string

要使用的 API 版本。 這應該設定為 '7.1-preview.2',以使用此版本的 API。

$top
query

integer

int32

要傳回的工作專案數目上限。

回應

名稱 類型 Description
200 OK

ResourceRef[]

成功作業

安全性

oauth2

類型: oauth2
Flow: accessCode
授權 URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
權杖 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

範圍

名稱 Description
vso.build 授與存取組建成品的能力,包括建置結果、定義和要求,以及能夠透過服務勾點接收有關建置事件的通知。

定義

ResourceRef

名稱 類型 Description
id

string

url

string