Info |
---|
|
This routine is available starting with katl-commons 1.1.2
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 | getTimeSpent(issueKey, user_or_group) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Gets the time spent (logged) on an issue by a certain user or group. |
Gets the time spent (logged) on an issue by a certain user or group.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
issuekey | |
...
String | Yes | Key of the issue. | user_or_group |
|
...
String | Yes | Username or group name. |
|
Return
...
Type
intervalInterval
Returns an interval that represents the sum of all the worklogs of the specified user or members of the specified group on the issue.
...
Examples
Example 1
Code Block |
---|
getTimeSpent("PRJ-32", "jira-users");
|
Returns: The sum of the worklogs of all the members of "jira-users" on issue PRJ-32: 4d 5h.
...
Code Block |
---|
getTimeSpent("PRJ-32", "testuser");
|
Returns: The sum of the worklogs of the user "testuser" on issue PRJ-32: 2h.
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 15025 |
---|
showSpace | false |
---|
cql | label = "worklog_routine" and space = currentSpace ( ) |
---|
labels | worklog_routine |
---|
|