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


## Description

> Macro (excerpt)
> 
> Returns the last changes details for all the fields touched by user from the selected issue's history.

Returns the last changes details for all the fields touched by user (array of [Predefined structure types](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)) from the selected issue's history.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | lastIssueChanges(issueKey) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| issue key | String | Yes | Key of the selected issue. |

## Return Type

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

The return value is an array of structures documenting what the user has changed on the issue.

## Example

```javascript
JFieldChange [] changes = lastIssueChanges("TEST-10");
for(number i = 0; i < size(changes); i++) {
    runnerLog("U:" + changes[i].user + " Field:" + changes[i].field + " Val:" + changes[i].oldVal + " -> " + changes[i].newVal);
}
```

## See also

> Macro (contentbylabel)