3

任何人都可以帮助我使用 oslc 或 REST 调用获取该 sprint 中的迭代和 sprint 列表以及该 sprint 中的工作项

4

2 回答 2

1

该线程报告说查询迭代可能有点棘手:

用于获取特定开发线的迭代。报告休息 I/F 可能会有所帮助。

https://clm.example.com:9443/ccm/rpt/repository/foundation?fields=foundation/iteration[developmentLine/name='RTC V4.0.6 Development']/(id|name|developmentLine/name)

这会产生一些类似的东西:

<iteration> <developmentline> <name> <iteration>
    <developmentline><name>RTC V4.0.6 Development</name></developmentline>
    <id>Sprint 2</id>
    <name>Sprint 2</name>
</iteration> </name> </developmentline> </iteration>

不幸的是,迭代属于开发线,所以我们必须使用如下方式查询 developmentLine:

https://clm.example.com:9443/ccm/rpt/repository/foundation?fields=foundation/developmentLine/(name|projectArea/name)

有关可报告的 RestAPI 的简要介绍,请参阅此网页

https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI

这个报告 API 的优点是我们可以按名称查询,而不是对象的 uuid。

于 2014-12-03T06:41:43.003 回答
0

那里

我也通过这种方式解决了这个问题。试试看。
它返回 Open Sprint 列表。
http://jira.address/rest/greenhopper/1.0/sprint/picker

如果以后想搜索封闭的sprint,可以在上面的调用中使用如下参数:
http://jira.address/rest/greenhopper/1.0/sprint/picker?excludeCompleted=false

于 2014-12-03T06:35:31.823 回答