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


## Description

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

Returns the project version.

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

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| projectKey | String | Yes | Project key. |
| versionName | String | Yes | Version name. |

## Return Type

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

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

> ⚠️ 1. If projectKey or versionName is empty, an error will be raised.
> ⚠️ 2. If project or version does not exist, an error will be raised.

## See also

> Macro (contentbylabel)