Azure DevOps Rest API - Unable To Create New Iteration

前端 未结 2 1175
误落风尘
误落风尘 2021-01-27 02:27

Trying to use REST API to create iterations for a project using POST as per this:

https://docs.microsoft.com/en-us/rest/api/azure/devops/work/iterations/post%20team%20it

相关标签:
2条回答
  • 2021-01-27 02:47

    To create new iteration, you have to use another urls. You can find them here: Classification Nodes - Create Or Update. Sample of Create iteration:

    POST https://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_apis/wit/classificationnodes/Iterations?api-version=5.0

    Request Body

    JSON

    {
    "name": "Final Iteration",
    "attributes": {

    "startDate": "2014-10-27T00:00:00Z",

    "finishDate": "2014-10-31T00:00:00Z"

    }

    }

    0 讨论(0)
  • 2021-01-27 02:48

    You don't see the new iteration because you added the iteration in Project configuration only, the Rest API is related to "team settings".

    You need also to add the iteration in Team configuration (when you click on it you have tab "iterations", then click "Select iteration(s)" and select the new one).

    If you want help about the creating iteration you must share here all the code you tried.

    0 讨论(0)
提交回复
热议问题