2016-06-27 108 views
1

我正在尋找其他API來獲取所有衝刺與他們各自的開始和結束日期。我可以使用API​​獲取開始和結束日期的衝刺列表

rest/greenhopper/1.0/sprintquery/boardId?includeFutureSprints=true&includeHistoricSprints=false 

,並使用

rest/agile/1.0/sprint/sprintId 

但是衝刺的信息獲取衝刺的列表,它會要求我讓呼籲每個衝刺第二API。是否有API提供sprint列表及其信息,例如開始日期和結束日期。

回答

1

如果你在JIRA 7使用JIRA軟件,你可以使用: GET /rest/agile/1.0/board/{boardId}/sprint

這將返回結果,其中包括的startDate結束日期,例如:

{ 
    "maxResults": 2, 
    "startAt": 1, 
    "total": 5, 
    "isLast": false, 
    "values": [{ 
     "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 
    }, 
    { 
     "id": 72, 
     "self": "http://www.example.com/jira/rest/agile/1.0/sprint/73", 
     "state": "future", 
     "name": "sprint 2" 
    }] 
} 
+0

感謝。這工作。 –

相關問題