Shelvesets - Get Shelveset Work Items
获取与货架集关联的工作项。
GET https://dev.azure.com/{organization}/_apis/tfvc/shelvesets/workitems?shelvesetId={shelvesetId}&api-version=7.1
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
organization
|
path | True |
string |
Azure DevOps 组织的名称。 |
api-version
|
query | True |
string |
要使用的 API 版本。 这应设置为“7.1”才能使用此版本的 API。 |
shelveset
|
query | True |
string |
货架集的唯一 ID |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
成功作 |
安全性
oauth2
类型:
oauth2
流向:
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
作用域
名称 | 说明 |
---|---|
vso.code | 授予读取有关提交、更改集、分支和其他版本控制项目的源代码和元数据的能力。 此外,还可以通过服务挂钩搜索代码并获取有关版本控制事件的通知。 |
示例
GET a list of workitems for a ShelvesetId.
示例请求
GET https://dev.azure.com/fabrikam/_apis/tfvc/shelvesets/workitems?shelvesetId=My first shelveset;d6245f20-2af8-44f4-9451-8107cb2767db&api-version=7.1
示例响应
{
"count": 1,
"value": [
{
"webUrl": "https://dev.azure.com/fabrikam/web/wi.aspx?pcguid=d81542e4-cdfa-4333-b082-1ae2d6c3ad16&id=22",
"id": 22,
"title": "Wrong output",
"workItemType": "Bug",
"state": "Done"
}
]
}
定义
AssociatedWorkItem
名称 | 类型 | 说明 |
---|---|---|
assignedTo |
string |
|
id |
integer (int32) |
关联的工作项的 ID。 |
state |
string |
|
title |
string |
|
url |
string |
工作项的 REST URL。 |
webUrl |
string |
|
workItemType |
string |