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


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

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getAllBoards([username]) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns an array of JBoard type structs for every agile board.

Returns an array of JBoard type structs for every agile board.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| username | String | No | Optional username parameter to specify a user who can retrieve the board information. By default the current user (user who executed the script) is used and it is possible that the user may not have permissions to view the board. |

## Return Type

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

Returns an array of JBoard structs.

## Example

```javascript
for(JBoard board in getAllBoards("admin")) {
    runnerLog("Board id: " + board.id);
    runnerLog("Board name: " + board.name);
    runnerLog("Board type: " + board.type);
    runnerLog("Board saved filter Id: " + trim(board.savedFilterId));
    //see the JBoard structure type for more fields available for boards
}
```

## See also

> Macro (contentbylabel)

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