Skip to content

Function: getAllSprints() ​

ts
function getAllSprints(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  isLast?: boolean;
  maxResults?: number;
  startAt?: number;
  total?: number;
  values?: object[];
}>;

Defined in: src/agile/api/board.ts:668

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

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ boardId: number; maxResults?: number; startAt?: number; state?: "active" | "closed" | string & object | "future"; }-
parameters.boardIdnumberThe ID of the board that contains the requested sprints.
parameters.maxResults?numberThe maximum number of sprints to return per page. See the 'Pagination' section at the top of this page for more details.
parameters.startAt?numberThe starting index of the returned sprints. Base index: 0. See the 'Pagination' section at the top of this page for more details.
parameters.state?"active" | "closed" | string & object | "future"Filters results to sprints in specified states. Valid values: future, active, closed. You can define multiple states separated by commas, e.g. state=active,closed
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; isLast?: boolean; maxResults?: number; startAt?: number; total?: number; values?: object[]; }>