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

> Macro (button-handy)



> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | getVersion(projectKey, versionName) | **Package** | adm |
> | **Alias** | admGetProjectVersion(projectKey, versionName) //deprecated | **Pkg Usage** | getVersion(projectKey, versionName) |

## Description

> Macro (excerpt)
> 
> Returns the project version.

Returns the project version.

## Parameters

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

## Return Type

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

All the properties of a version (ID, name, description, projectKey, startDate, releaseDate, archived, released).

> ⚠️ If **projectKey** or **versionName** is empty, an error is returned. Also, if the project or version does not exist, an error is returned.

## See also

> Macro (contentbylabel)