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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getWorklogComment(worklog) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the comment associated with the worklog.

Returns the comment associated with the worklog.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| worklog | Number | Yes | Id of the selected worklog. |

## Return Type

**String**

## Examples

### Example 1

```
print(getWorklogComment(11201))
```

Prints the comment associated with  the specified worklog (the worklog with id = 11201).

### Example 2

```
for(number id in getWorklogIdsForUser("admin", key)){
  print(getWorklogComment(id))
}
```

Prints the comment associated with the admin's worklogs of the current issue.

## See also

> Macro (contentbylabel)