Skip to end of metadata
Go to start of metadata

Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.

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:

getWorklogUpdatedDate(worklog)

Syntax for the cloud version:


getWorklogUpdatedDate(issue, worklog)


Description


Returns the last date when the worklog was updated.

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

Date

Example 1  (server only)

print(getWorklogUpdatedDate(11201))

Prints the last date when the worklog with id = 11201 was updated.

Example 2 (server only)

for(number id in getWorklogIds("admin",key)){
 print(getWorklogUpdatedDate(id))
}

Prints the last date when the admin's worklogs of the current issue were updated.

Example 3 (cloud only)

print(getWorklogUpdatedDate(key, 11201))

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

See also