getWorklogComment

Syntax for the server version:

getWorklogComment(worklog)


Syntax for the cloud version:

getWorklogComment(issue, worklog)


Description


Returns the comment associated with the worklog.

Parameters for the server version

ParameterTypeRequiredDescription
worklogNumberYesId of the selected worklog.

Parameters for the cloud version:

Parameter

Type

Required

Description

issuestringYesThe issue key.
worklogNumberYesId of the selected worklog.

Return type

String

Example 1 (server only)

Prints the comment associated with  the specified worklog (the worklog with id = 11201).

Example 2 (server only)

Prints the comment associated with the admin's worklogs of the current issue.

Example 3 (cloud only)

Prints the comment of the worklog with id = 11201, on the current issue.

See also