I am using the API for getting issue details, /rest/api/2/issue/{issueIdOrKey}, as documented here:
https://developer.atlassian.com/static/rest/jira/6.1.html
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?
Thanks,
Scott Vickery
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
2nd question, how does the UI return ALL work logs? I suppose I can look.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.