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


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

## Description

> Macro (excerpt)
> 
> Returns the logged hours for a worklog.

Returns the logged hours for a worklog.

## Parameters

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

## Return Type

**Interval**

## Examples

### Example 1

```
print(getWorklogLoggedHours(11201))
```

Prints the logged hours for the worklog with id = 11201.

### Example 2

```
for(number id in getWorklogIdsForUser("admin", "TP-9")){print (getWorklogLoggedHours (id))}
```

Prints the logged hours for all the admin's worklogs of the issue with key = "TP-9".

## See also

> Macro (contentbylabel)