lch*_*lch 14 jira jira-rest-api jira-agile
是否有类似" http://www.example.com/jira/rest/agile/1.0/sprint?project=XYZ "的内容,以检索项目中的所有冲刺.
JIRA平台api可以检索项目信息,JIRA软件API可以检索给定板的冲刺.但我需要针对给定项目的任何给定项目(组合)或至少板的冲刺,以便我可以在以后检索这些板中的冲刺
Car*_*los 13
你可以用两种资源来做到这一点:
https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board-getAllBoards
使用查询参数projectKeyOrId并键入以过滤它们.
迭代所有元素并使用下面的url和每个板的id来获取它的sprint:
https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board/{boardId}/sprint-getAllSprints
这会为您返回任何结果吗?
http://jira-domain.com/rest/greenhopper/latest/rapidviews/list
Run Code Online (Sandbox Code Playgroud)
如果是这样,找到包含该项目的视图的id,然后尝试这个url:
http://jira-domain.com/rest/greenhopper/latest/sprintquery/{view-id}?includeHistoricSprints=true&includeFutureSprints=true
Run Code Online (Sandbox Code Playgroud)