In the jira rest API doc for getting all sprints the api given is GET /rest/agile/1.0/board/{boardId}/sprint and the response is given as,
{ "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" } ] }
here the field 'total' is in the api response but when calling the api all the other fields except "total' is coming...
how to get the total count of sprints in a board?