【问题标题】:How do I add a Sprint using the Rest API如何使用 Rest API 添加 Sprint
【发布时间】:2019-08-13 22:05:03
【问题描述】:

在 Azure DevOps Rest API 中,我希望能够以编程方式添加 Sprint。

我无法理解如何完成此操作,因为似乎文档声明我需要 id 才能在迭代中添加。

有人可以帮助我了解我需要编写什么请求来通过 API 创建新的迭代吗?

https://docs.microsoft.com/en-us/rest/api/azure/devops/work/iterations/list?view=azure-devops-rest-5.1

【问题讨论】:

    标签: azure-devops azure-devops-rest-api


    【解决方案1】:

    你需要在body中提供的id是分类节点标识符,你可以从this API获取列表:

    GET https://dev.azure.com/{organization}/{project}/_apis/wit/classificationnodes/{stractureGroup}/{path}?api-version=5.1
    

    structreGroup 是 Areas 或 Iterations(在您的情况下应该是 Iterations)。

    在响应中,您将获得一个带有 GUID 的 identifier 属性,在创建迭代 API 中将此 GUID 用于 id。

    【讨论】:

    • 谢谢!!哈哈,你不知道我尝试了多久
    • @incursion45 如果答案是您的解决方案,那么您可以accept the answer :)
    猜你喜欢
    • 2016-10-15
    • 2013-10-27
    • 2019-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多