![](/img/trans.png)
[英]Azure devops, how are work items linked to git commits by “work item mentioning”?
[英]Azure DevOps get commits linked to a work item via the REST API
有沒有辦法讓只給定工作項 ID 的 Git 提交鏈接到工作項?
我正在使用 PowerShell 和此URI 來獲取工作項,但在返回的對象上沒有看到任何鏈接提交。 我也沒有看到任何關於如何獲取這些鏈接的文檔。
$Results = Invoke-RestMethod -Uri "http://azuredevops/azuredevops/Collection/Project/_apis/wit/workitems?api-version=5.1&ids=1" -Method "GET" -UseDefaultCredentials | Select-Object -ExpandProperty Value
$Results.fields
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.