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


## Description

> Macro (excerpt)
> 
> Gets all the comment properties for the last issue comment.

Gets all the comment properties for the last issue comment.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getLastComment(issueKey); | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| issueKey | String | Yes | Issue key. |

## Return Type

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

## Example

```javascript
JComment cmt = getLastComment("DEMO-1");
runnerLog("Got comment:" + cmt["text"]);
```

## See also

> Macro (contentbylabel)