getWorklogLoggedHours
Syntax | getWorklogLoggedHours(worklog) | Package |
|
Alias |
| Pkg Usage |
|
Description
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".