getWorklogLoggedHours

Syntax for the server version:

getWorklogLoggedHours(worklog)

Syntax for the cloud version:

getWorklogLoggedHours(issue, worklog)


Description


Returns the logged hours for a worklog.

Parameters for the server version:

ParameterTypeRequiredDescription
worklogNumberYesId of the selected worklog.

Parameters for the cloud version:

ParameterTypeRequiredDescription
issueStringYesThe issue key
worklogNumberYesId of the selected worklog.

Return type

Interval

Example 1  (server only)

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

Example 2 (server only)

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

Example 3 (cloud only)

Prints the logged hours for the worklog with id = 11201, on the current issue.

See also