如何在 Azure DevOps 中通过 API 将讨论评论添加到现有工作项卡(Feature card)
How to add discussion comments to the existing workitem card(Feature card) through API in Azure DevOps
我想将 [System.History] 的讨论评论添加到现有卡片。我如何通过 API 或是否有任何更新 WIQL 查询来更新卡?
您可以使用 REST API。看这里:https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/comments/add?view=azure-devops-rest-5.1. As of 22.07.2020 the documentation there is still incorrect, see https://github.com/MicrosoftDocs/vsts-rest-api-specs/issues/313.
示例请求 (HTTP)
POST https://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_apis/wit/workItems/299/comments?api-version=5.1-preview.3
请求正文(JSON)
{
"text": "Moving to the right area path"
}
我想将 [System.History] 的讨论评论添加到现有卡片。我如何通过 API 或是否有任何更新 WIQL 查询来更新卡?
您可以使用 REST API。看这里:https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/comments/add?view=azure-devops-rest-5.1. As of 22.07.2020 the documentation there is still incorrect, see https://github.com/MicrosoftDocs/vsts-rest-api-specs/issues/313.
示例请求 (HTTP)
POST https://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_apis/wit/workItems/299/comments?api-version=5.1-preview.3
请求正文(JSON)
{
"text": "Moving to the right area path"
}