---
title: "getAllOpenSprints"
canonical: "https://support.appfire.com/space/PSJ/15480979/getAllOpenSprints"
format: markdown
---
> Macro (aura-html)


> 📝 The use of this function requires the Power Scripts for Jira add-on be installed and licensed.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getAllOpenSprints() | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns an array of JSprint type structs for every open sprint.

Returns an array of JSprint type structs for every open sprint.

## Return Type

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

Returns an array of JSprint structs.

## Example

```javascript
string format = "MM/dd/yyyy"; //format for date
for(JSprint sprint in getAllOpenSprints()) {
    runnerLog("Sprint name: " + sprint.name);
    runnerLog("Sprint start date: " + formatDate(sprint.startDate, format));
    runnerLog("Sprint end date: " + formatDate(sprint.endDate, format));
    runnerLog("Sprint completion date: " + formatDate(sprint.completeDate, format));
}
```

## See also

> Macro (contentbylabel)

> Macro (fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macro)