getAllSprints method

Future getAllSprints({
  1. required int boardId,
  2. int? startAt,
  3. int? maxResults,
  4. Map<String, dynamic>? state,
})

Returns all sprints from a board, for a given board ID. This only includes sprints that the user has permission to view.

Implementation

Future<dynamic> getAllSprints(
    {required int boardId,
    int? startAt,
    int? maxResults,
    Map<String, dynamic>? state}) async {
  return await _client.send(
    'get',
    'rest/agile/1.0/board/{boardId}/sprint',
    pathParameters: {
      'boardId': '$boardId',
    },
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
      if (state != null) 'state': '$state',
    },
  );
}