Nie*_*ree 14
我使用以下休息调用来查找所有sprint:
为了找到项目的开放式冲刺,我运行:https://yourjira.com/rest/greenhopper/1.0/integration/teamcalendars/sprint/list?jql = project +%3D + YOURPROJECTKEY+and +Sprint+not+ in + closedSprints()
小智 10
在JQL中,它还不可能,但您可以使用新的jira agile API.以下是jira cloud和jira 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/greenhopper/1.0/sprint/picker
提供包含id和boardName的活动冲刺的"allMatches"数组.
当我在所有项目中搜索活动冲刺列表以清理未完成或未命名的短跑时,这对我很有用:-)
基于此答案: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)
没有 REST 端点可以执行此操作,您只能查询特定 Rapid Board 可见的 sprint,并且需要使用 GreenHoppper 插件来执行此操作。
其端点是:https://yourjira.com/rest/greenhopper/1.0/sprints/ {rapidBoardId}
您可以在另一个 REST 端点枚举快速板:https ://yourjira.com/rest/greenhopper/1.0/rapidviews/list
| 归档时间: |
|
| 查看次数: |
20202 次 |
| 最近记录: |