Artifact Link Types - List
获取跟踪出站项目链接类型的工作项列表。
GET https://dev.azure.com/{organization}/_apis/wit/artifactlinktypes?api-version=7.1-preview.1
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
organization
|
path | True |
string |
Azure DevOps 组织的名称。 |
api-version
|
query | True |
string |
要使用的 API 版本。 应将其设置为“7.1-preview.1”才能使用此版本的 API。 |
响应
名称 | 类型 | 说明 |
---|---|---|
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
名称 | 说明 |
---|---|
vso.work | 授予读取工作项、查询、板、区域和迭代路径以及其他工作项跟踪相关元数据的能力。 此外,还允许通过服务挂钩执行查询、搜索工作项和接收有关工作项事件的通知。 |
示例
Sample Request
GET https://dev.azure.com/fabrikam/_apis/wit/artifactlinktypes?api-version=7.1-preview.1
Sample Response
{
"count": 16,
"value": [
{
"toolType": "Git",
"artifactType": "Branch",
"linkType": "Branch"
},
{
"toolType": "Build",
"artifactType": "Build",
"linkType": "Build"
},
{
"toolType": "VersionControl",
"artifactType": "Changeset",
"linkType": "Fixed in Changeset"
},
{
"toolType": "Git",
"artifactType": "Commit",
"linkType": "Fixed in Commit"
},
{
"toolType": "Build",
"artifactType": "Build",
"linkType": "Found in build"
},
{
"toolType": "Build",
"artifactType": "Build",
"linkType": "Integrated in build"
},
{
"toolType": "ArchitectureTools",
"artifactType": "ModelLink",
"linkType": "Model Link"
},
{
"toolType": "Git",
"artifactType": "PullRequestId",
"linkType": "Pull Request"
},
{
"toolType": "WorkItemTracking",
"artifactType": "Workitem",
"linkType": "Related Workitem"
},
{
"toolType": "TestManagement",
"artifactType": "TcmResultAttachment",
"linkType": "Result Attachment"
},
{
"toolType": "VersionControl",
"artifactType": "LatestItemVersion",
"linkType": "Source Code File"
},
{
"toolType": "Requirements",
"artifactType": "Storyboard",
"linkType": "Storyboard"
},
{
"toolType": "Git",
"artifactType": "Tag",
"linkType": "Tag"
},
{
"toolType": "TestManagement",
"artifactType": "TcmTest",
"linkType": "Test"
},
{
"toolType": "TestManagement",
"artifactType": "TcmResult",
"linkType": "Test Result"
},
{
"toolType": "WorkItemTracking",
"artifactType": "Hyperlink",
"linkType": "Workitem Hyperlink"
}
]
}
定义
WorkArtifactLink
工作项目链接描述出站项目链接类型。
名称 | 类型 | 说明 |
---|---|---|
artifactType |
string |
目标项目类型。 |
linkType |
string |
出站链接类型。 |
toolType |
string |
目标工具类型。 |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈