Azure DevOps - 是否可以获取项目中的迭代路径列表?

发布于 2025-01-14 23:49:04 字数 134 浏览 3 评论 0原文

我有一个项目,其迭代路径设置如下:项目名称/子项目/年/季度/冲刺

我想获取每个项目中的子项目列表(或所有迭代路径的列表,我可以自己清理数据)。使用 REST API 可以吗?如果没有,还有其他方法可以实现这一目标吗?

谢谢。

I have a project that has iteration paths set up like this: Project-Name/sub-project/year/quarter/sprint

I want to get the list of sub-projects in each Project (or a list of all iteration paths and I can clean the data myself). Is this possible using REST API? If not, are there any other ways to achieve this?

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤独患者 2025-01-21 23:49:04

您可以使用 分类节点 获取迭代树的 api

下面将为您提供一个子深度设置为 1 的嵌套迭代列表(其中应包含您的子项目作为最后一个级别。 azure-devops-rest-6.0#get-the-iteration-tree-with-2-levels-of-children" rel="nofollow noreferrer">此处获取返回数据的示例。

GET https://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_apis/wit/classificationnodes/Iterations?api-version=6.0&depth=1

You can use the classification nodes api to get the iteration tree

The following will give you a nested list of iteration with children depth set to 1 (which should contain your sub-projects as the last level. See here for an example of the returned data.

GET https://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_apis/wit/classificationnodes/Iterations?api-version=6.0&depth=1
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文