Example 2: Querying the Iteration List of a Specified Project
Scenario
This section the test001 user as an example to describe how to use an API to query the iteration list of a specified project.
For details about how to call APIs, see Calling APIs.
Constraints
Ensure that the test001 user has created a CodeArts Req project.
Involved API
Query the iteration list of a specified project of the current user based on the user token.
URI: GET /v4/projects/{project_id}/iterations
For details about the API document, see "Obtaining the Iteration List of a Specified Project."
For details about online API Explorer debugging, see "Obtaining the Iteration List of a Specified Project."
Procedure
- Request example
GET https://projectman-ext.ap-southeast-3.myhuaweicloud.com/v4/projects/3cea7d4d77134eee8251825918a8bd7a/iterations
- Response example
{ "iterations": [ { "id": 707961817, "name": " iteration 1", "description": "", "begin_time": "2020/06/07", "end_time": "2020/07/06" }, { "id": 707961818, "name": " iteration 2", "description": "", "begin_time": "2020/07/07", "end_time": "2020/08/06" }, { "id": 707961819, "name": " Iteration 3", "description": "", "begin_time": "2020/08/07", "end_time": "2020/09/06" } ], "total": 3 }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot