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


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

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

## Description

> Macro (excerpt)
> 
> Retrieves a structure containing information about a link that has been created or deleted.

Retrieves a structure containing information about a link that has been created or deleted.

## Parameters

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

## Return Type

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

## Example

```
JIssueLink link = getIssueLinkFromEvent();
logPrint("INFO", "Link ID: " + link.id);
logPrint("INFO", "Link Name: " + link.name);
logPrint("INFO", "Link Direction: " + link.direction);
logPrint("INFO", "Link Description: " + link.description);
logPrint("INFO", "Link Issue: " + link.issue);
logPrint("INFO", "Link Source: " + key);
```

Prints:
Link ID: 10001
Link Name: Cloners
Link Direction: 1
Link Description: clones
Link Issue: SIL-123
Link Source: SIL-456

## See also

> Macro (contentbylabel)

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