Rest api to acces worklogs and filtering,


I try to get the worklogs for issue via rest api.

I give a try using the following api:

/rest/api/2/search?jql=key in workedIssues("2014/12/08", "2014/12/16", "username")&fields=worklog

the matter with this call is that the api return issue filter by date and name, but worklogs inside the issue is not filter by the date and name. So when I ask for december issue, I get back January issue first, and other users I don't want. Also, result in worklogs are constraint by page size, and I get only the first 20 results. I don't find anyway to get next page results.

I know I could also use this api:


The matter with this one is that i don't find anyway to limits the results. I don't find a way to give a filter on the date, or on the user. The apis don't seems also to support the startAt and maxResults parameters. This is really bad for us, because we have issues with lot of worklogs (around ~5000), and network operations are very slow in this case.


Do you know if there is any other ways to get worklogs for a specific users and period, or if i can do pagination on any of this two request worklogs ?

If no, do you have any enhancement plan for this API ?





1 answer

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
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

546 views 1 18
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