Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How get all timespent sum by an author through the Rest-API?

Angel Ferreira
Contributor
October 18, 2023

How would I get all timespent sum by an author through the Rest-API?

1 answer

1 vote
Naveen Kumar_Appfire
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2023

Hi @Angel Ferreira

Instead of trying to use the time-spent field, perhaps you use the worklog field instead.  You can call the REST API endpoint of GET /rest/api/2/issue/{issueIdOrKey}/worklog.  This will return all the work log entries and their times.

Also, please refer to this similar issue, https://community.atlassian.com/t5/Jira-questions/Re-Jira-TimeSpent-query-for-the-users-who-logs-hours/qaq-p/1825128/comment-id/504005#M504005 might be of interest,

Suggest an answer

Log in or Sign up to answer