getWorklogStartDate

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Availability

This routine is available starting with SIL Engine™ 2.5.

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

Syntax for the server version:

getWorklogStartDate(worklog)

Syntax for the cloud version:

getWorklogStartDate(issue, worklog)



Description


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

Date

Example 1  (server only)

print(getWorklogStartDate(11201))

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

Example 2  (server only)

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

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

Example 3 (cloud only)

print(getWorklogStartDate(key, 11201))

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

See also