Get worklogs for SPECIFIC ISSUES?

I'm using the REST API and passing issue filters to retrieve results/totals.

I currently have a query like this - "project=ABC and duedate >= 01/01/1980 and duedate <= 01/31/1980"

And that will retrieve all issues that are due in January 1980 for project ABC.

What I then want is the work logs for THOSE ISSUES only. I know in your exmpale RESTful endpoint page, you have this - jql=key in workedIssues("2013/10/14","2013/10/14","jira-developers")&fields=worklog - but that doesn't match against my first set above.

How can I do this?


2 answers

1 accepted

0 votes
Accepted answer

Hi Mark,

You should use your query as jql parameter, instead, e.g. rest/api/2/search?jql=project%3DABC%20and%20duedate%20%3E%3D%20%222014-01-01%22%20and%20duedate%20%3C%3D%20%222014-01-31%22&fields=*all

Hope it helps.

Hi Andriy,

Thanks for the super-quick reply. I didn't realise the "worklogs" were available by the normal JIRA REST API. No problem with the JQL - I've got some crazy ones going on here trying to find specific issues from PHP ... now I can get and parse the worklog as JSON that'll make it sweet! :-)

thanks again :-)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,687 views 3 11
Read article

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