Rest api to acces worklogs and filtering,

Hello,

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:

/rest/api/2/issue/{issueKey}/worklog

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 ?

 

Regards,

      Laurent.

 

1 answer

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,791 views 11 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot