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


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

## Description

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

Gets all the comment properties for the last issue comment.

## Parameters

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

## Return Type

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

## Example

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

## See also

> Macro (contentbylabel)