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


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

## Description

> Macro (excerpt)
> 
> Returns the author of a worklog.

Returns the author of a worklog.

## Parameters

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

## Return Type

**String**

## Examples

### Example 1

```
print(getWorklogAuthor(11201))
```

Prints author's username of the worklog with id = 11201.

### Example 2

```
for(number id in getWorklogIds("2012 -05 -23 16: 01: 00",key)){
  print(getWorklogAuthor(id))
}
```

Prints the author for the  worklogs of the current issue who have the start date = "2012-05-23 16:01:00".

## See also

> Macro (contentbylabel)