Info |
---|
|
This routine is available starting with katl-commons 2.5. This routine is available for Jira server and cloud deployment options. |
...
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | getWorklogLoggedHours(worklog) | |
...
Syntax for the cloud version:
...
Description
Excerpt |
---|
|
Returns the logged hours for a worklog. |
Parameters for the server version:
...
Parameters for the cloud version:
...
Returns the logged hours for a worklog.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
|
...
|
---|
worklog | Number | Yes | Id of the selected worklog. |
|
Return
...
Type
Interval
...
Examples
Example 1
Code Block |
---|
print(getWorklogLoggedHours(11201)) |
Prints the logged hours for the worklog with id = 11201.
Example 2
...
Code Block |
---|
for(number id in getWorklogIdsForUser("admin", "TP-9")){
print print(getWorklogLoggedHours (id))
} |
Prints the logged hours for all the admin's worklogs of the issue with key = "TP-9".
Example 3 (cloud only)
Code Block |
---|
print(getWorklogLoggedHours(key, 11201)) |
Prints the logged hours for the worklog with id = 11201, on the current issue.
See also
Filter by label (Content by label) |
---|
|
15025 | showSpace | false |
---|
cql | label = "worklog_routine" and space = currentSpace ( ) |
---|
labels |
---|
|
worklogroutine