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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | raiseEvent(event_name, issue, user) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Triggers an event to be processed by listeners.

Triggers an event to be processed by listeners.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| event name | String | Yes | Name of the event to be triggered, as it appears in the Administration->Events section. |
| issue key | String | Yes | Key of the issue that will raise the event. |
| user name | String | Yes | User name of the user who will generate the event. |

## Return Type

**Boolean**

A "true" return value means that the specified event was triggered successfully. A "false" value means that there was a problem and you should investigate this further by consulting the logs.

## Examples

### Example 1

```
//Assuming we have already added the "Delete" event
raiseEvent("Delete", "PRJ-231", currentUser());
```

Returns "true" if the event was triggered for the issue PRJ-231 by the current user and "false" if the event wasn't triggered.

### Example 2

```
//Assuming we have already added the "Delete" event
raiseEvent("Delete", key, "Admin");
```

Returns "true" if the event was triggered for the current issue by the user "Admin" and "false" if the event wasn't triggered.

## See also

> Macro (contentbylabel)