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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getWorklogIdsForUser(author, issueKey) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns an array with the ids of the worklogs for the specified user and issue.

Returns an array with the ids of the worklogs for the specified user and issue.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| author | String | Yes | The username of the selected user. |
| issueKey | String | Yes | Key of the selected issue. |

## Return Type

**integer[]**

## Example

```
getWorklogIdsForUser("admin",key)
```

Returns an array containing the ids of all the worklogs of the current issue who were created by admin.

## See also

> Macro (contentbylabel)