Forums

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

Jira REST API - get total logged time for one issue.

Chris Taylor June 27, 2019

Using the Jira cloud REST API, how can I get the total logged time for one issue i.e. the sum of all the individual work logs?

If I browse an issue on the web, this is shown in the Time tracking section as a value for the 'Logged' field.

1 answer

1 accepted

2 votes
Answer accepted
Kian Stack Mumo Systems
Community Champion
June 27, 2019

Chris, you'd want to use the end point /rest/api/3/issue/{issueIdOrKey}.

The field that you are looking for is called "timeSpent". It is located inside of the "fields" object.

Thanks,

Kian

Chris Taylor June 28, 2019

Perfect, many thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events