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


## Description

> Macro (excerpt)
> 
> Returns all the project versions as an array of JVersion structures.

Returns all the project versions as an array of JVersion structures.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getVersionsObjects(pkey) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| pKey | String | Yes | Project key. |

## Return Type

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

## Example

```javascript
JVersion [] verObjs = getVersionsObjects("TP"); //projectKey as parameter
for(JVersion ver in verObjs) {
    runnerLog(ver.name);
    runnerLog(ver.releaseDate);
}
```

Returns an array of JVersion structures containing all the project versions.

## See also

> Macro (contentbylabel)