getWorklogComment

getWorklogComment

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 katl-commons 2.5.

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

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

Parameter

Type

Required

Description

Parameter

Type

Required

Description

worklog

Number

Yes

Id of the selected worklog.

Parameters for the cloud version:

Parameter

Type

Required

Description

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)

print(getWorklogComment(11201))

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

Example 2 (server only)

for(number id in getWorklogIdsForUser("admin", key)){ print(getWorklogComment(id)) }

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

Example 3 (cloud only)

print(getWorklogComment(key, 11201))

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

See also