getWorklogAuthor
Syntax for the server version:
getWorklogAuthor(worklog)
Syntax for the cloud version:
getWorklogAuthor(issue, worklog)
Description
Returns the author of a worklog.
Parameters for the server version:
Parameter | Type | Required | Description |
---|---|---|---|
worklog | Number | Yes | Id of the selected worklog. |
Parameters for the cloud version:
Parameter | Type | Required | Description |
---|---|---|---|
issue | string | Yes | The issue key. |
worklog | Number | Yes | Id of the selected worklog. |
Return type
String
Example 1 (server only)
Prints author's username of the worklog with id = 11201.
Example 2 (server only)
Prints the author for the worklogs of the current issue who have the start date = "2012-05-23 16:01:00".
Example 3 (cloud only)
Prints author's username of the worklog with id = 11201, on the current issue.
See also