Get worklogs for SPECIFIC ISSUES?

Mark Haller February 21, 2014

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?

Thanks!

2 answers

1 accepted

0 votes
Answer accepted
Andriy Zhdanov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2014

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.

0 votes
Mark Haller February 22, 2014

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
TAGS
AUG Leaders

Atlassian Community Events