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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

820 views 2 9
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