Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.
This routine is available starting with katl-commons 1.1.2
This routine is available for Jira server and cloud deployment options.
getTimeSpent(issueKey, user_or_group )
DescriptionGets the time spent (logged) on an issue by a certain user or group.
Key of the issue.
|user_or_group||string||Yes||Username or group name.|
Returns an interval that represents the sum of all the worklogs of the specified user or members of the specified group on the issue.
Returns: The sum of the worklogs of all the members of "jira-users" on issue PRJ-32: 4d 5h.
Returns: The sum of the worklogs of the user "testuser" on issue PRJ-32: 2h.