---
title: "getClosedSprints"
canonical: "https://support.appfire.com/space/PSJC/561283337/getClosedSprints"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Retrieves information about sprints that have been completed and closed.

Retrieves information about sprints that have been completed and closed, offering an overview of past sprint details.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getClosedSprints(boardId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| boardId | Integer | Yes | The board id |

## Return Type

**[JSprint []](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

Returns the closed sprints structures.

## Example

```javascript
JSprint [] sprints = getClosedSprints(12345);
for(JSprint s in sprints) {
    runnerLog("Id: " + s.id);
    runnerLog("Name: " + s.name);
}
```

> ⚠️ 1. If there is no board with that name or id, an exception will be raised.
> ⚠️ 2. The user must have sufficient permissions to view the board.

## See also

> Macro (contentbylabel)