getWorklogCreatedDate

Availability

This routine is available starting with katl-commons 2.5.

This routine is available for Jira server and cloud deployment options.

Syntax for the server version:

getWorklogCreatedDate(worklog)


Syntax for the cloud version:

getWorklogCreatedDate(issue, worklog)


Description


Returns the created date of a 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

Date

Example 1 (server only)

print(getWorklogCreatedDate(11201))

Prints the created date of the worklog with id = 11201.

Example 2 (server only)

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

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


Example 3 (cloud only)

print(getWorklogCreatedDate(key, 11201))

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

See also