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


> 📝 The use of this function requires the Power Scripts for Jira add-on be installed and licensed.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getVersionFromEvent() | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Retrieves a structure containing information about a version that has been archived, created, released, unarchived, unreleased, moved or merged.

Retrieves a structure containing information about a version that has been archived, created, released, unarchived, unreleased, moved or merged.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |

## Return Type

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

## Example

```
logPrint("INFO", "Result of listener: " + getVersionFromEvent());
```

The result is a structure containing version id, name, description, project key of the version, start date and release dates, and information about whether the version is archieved or released.

## See also

> Macro (contentbylabel)

> Macro (fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macro)