JQL:获取sprint列表

13 jira jql

是否有可能获得特定项目的冲刺列表?我知道有一种方法可以通过sprint找到问题,但是没有找到任何方法来获得所有冲刺.

小智 10

在JQL中,它还不可能,但您可以使用新的jira agile API.以下是jira cloudjira server 7.2.3的文档.

首先,您需要找到项目的板.获取主板列表的REST端点是:

[jira-url]/rest/agile/1.0/board

接下来,您可以获得他们的项目:

[jira-url]/rest/agile/1.0/[board-id]/project

因此,通过这种方式,您可以找到项目的电路板ID.最后,您可以通过以下方式获取此板的冲刺列表:

[jira-url]/rest/agile/1.0/[board-id]/sprint

  • 谢谢...但是...似乎实际上是:[jira-url] /rest/agile/1.0/board/ [board-id] / sprint当我使用它时,它可以完美运行! (2认同)

dri*_*man 6

[JIRA-URL] /rest/greenhopper/1.0/sprint/picker

提供包含id和boardName的活动冲刺的"allMatches"数组.

当我在所有项目中搜索活动冲刺列表以清理未完成或未命名的短跑时,这对我很有用:-)


Toh*_*hid 5

基于此答案:answers.atlassian.com/questions/65920/answers/3599592,获取冲刺列表的最佳 Web API 是:

https://<your_site>/rest/greenhopper/1.0/sprintquery/<rapidBoardId>?includeFutureSprints=true&includeHistoricSprints=false
Run Code Online (Sandbox Code Playgroud)

<rapidBoardId> 每个系统都不一样,我在JIRA上冲浪的时候在浏览器的地址栏中看到它,然后我将它硬编码到调用API的代码中。

https://<your_site>/secure/RapidBoard.jspa?rapidView=<rapidBoardId is here on your browser address bar>
Run Code Online (Sandbox Code Playgroud)


Nik*_*eja 4

没有 REST 端点可以执行此操作,您只能查询特定 Rapid Board 可见的 sprint,并且需要使用 GreenHoppper 插件来执行此操作。

其端点是:https://yourjira.com/rest/greenhopper/1.0/sprints/ {rapidBoardId}

您可以在另一个 REST 端点枚举快速板:https ://yourjira.com/rest/greenhopper/1.0/rapidviews/list

在这里阅读更多信息:https://answers.atlassian.com/questions/65920/how-can-i-list-all-sprints-from-greenhopper-using-the-rest-api