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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getComponents(pkey [, filterArchived]) | **Package** | adm |
| **Alias** | admGetProjectComponents(pkey [, filterArchived]) //deprecated | **Pkg Usage** | getComponents(pkey [, filterArchived]) |

## Description

> Macro (excerpt)
> 
> Returns the project components. When using the **filterArchived** parameter with the value set to **true**, all the archived components are excluded from the result.

Returns the project components. When using the **filterArchived** parameter with the value set to **true**, all the archived components are excluded from the result.  

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| pkey | String | Yes | Project key. |
| filterArchived | Boolean | No | Filter for archived components. |

## Return Type

**String []**

All the project components names, as returned by the underlying Jira layer.

## See also

> Macro (contentbylabel)