JIRA RESTful call for issue details

I am using the API for getting issue details, /rest/api/2/issue/{issueIdOrKey}, as documented here:


The result of the query only includes the first 30 days of the work logs. I want ALL of the work logs. I do not see a parameter to control this. Am I looking at the wrong docs? Or, is there some other way to control the amount of data returned in the work logs?


Scott Vickery

1 answer

0 vote
Warren Levy Community Champion Aug 11, 2017

Hi Scott

As far as I'm aware, it actually only returns the first 20 worklogs - I'm guessing that your 20 logs are spread across 30 days in this instance.

Atlassian have done this deliberately and there is no parameter that you can use to get more via this API call. 

In my code I check for the number of worklogs and, if more than 20, I then go to the Tempo API to get "all" the logs - see Tempo API

The Tempo API is an add-on and not part of the base JIRA installation, correct?

2nd question, how does the UI return ALL work logs? I suppose I can look.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

12,042 views 15 13
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you