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

> Macro (button-handy)



> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | getVersionsObjects(pkey) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## 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.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | pKey | String | Yes | Project key. |

## Return Type

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

## 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)