以下网址提供除了冲刺的开始和结束日期之外的所有信息。
假设您是JIRA和JIRA Software的最新版本,您可以使用JIRA Agile REST API's。
有趣的REST API资源是:
Get Issue:GET /rest/agile/1.0/issue/{issueIdOrKey} 此资源的输出还将包括敏捷字段和sprint名称及其id,例如:
...
"sprint": {
"id": 37,
"self": "http://www.example.com/jira/rest/agile/1.0/sprint/13",
"state": "future",
"name": "sprint 2"
},
...
Get Sprint:GET /rest/agile/1.0/sprint/{sprintId}此资源的输出包括sprint开始和结束日期,例如:
{
"id": 37,
"self": "http://www.example.com/jira/rest/agile/1.0/sprint/23",
"state": "closed",
"name": "sprint 1",
"startDate": "2015-04-11T15:22:00.000+10:00",
"endDate": "2015-04-20T01:22:00.000+10:00",
"completeDate": "2015-04-20T11:04:00.000+10:00",
"originBoardId": 5
}
文档还可能包含其他有用的资源。
要从活动冲刺中获取日期:
url = 'https://www.example.com/rest/agile/1.0/board/{rapidViewId}/sprint?state=active'
并关闭:
url = 'https://www.example.com/rest/agile/1.0/board/{rapidViewId}/sprint?state=closed'
您也可以使用相同的信息来获取有关未来sprint的信息(只需将“关闭”更改为“future”),但请记住,未来的sprint没有日期,但您可以获取名称和sprintID。