
Syntax
|
getTimeSpent(issueKey, user_or_group)
|
Package
|
|
Alias
|
|
Pkg Usage
|
|
|
Description
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
Parameter name
|
Type
|
Required
|
Description
|
issuekey
|
String
|
Yes
|
Key of the issue.
|
user_or_group
|
String
|
Yes
|
Username or group name.
|
|
Return Type
Interval
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
getTimeSpent("PRJ-32", "jira-users"); |
Returns: The sum of the worklogs of all the members of "jira-users" on issue PRJ-32: 4d 5h.
Example 2
getTimeSpent("PRJ-32", "testuser"); |
Returns: The sum of the worklogs of the user "testuser" on issue PRJ-32: 2h.
See also

defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock72819fbf-0413-4f8a-a2e1-c713212888b7ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockceb7aefe-1b3f-437d-9db7-5d2c3e1f9c8adefaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock72819fbf-0413-4f8a-a2e1-c713212888b7ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockceb7aefe-1b3f-437d-9db7-5d2c3e1f9c8a