The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JIRA REST API: Some Cards Are Missing Worklog Items

Andrew Wright
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 26, 2017

I'm trying to obtain worklog infromation for a particular card in JIRA, but a lot of the worklog items are missing.  I can log into JIRA, which is being hosted on Atlassian's cloud, and see the worklog items attached to the card - there's 4 or 5 worklog items altogether.  However, when I submit the following query to the the JIRA REST API:

 

https://mydomainname.atlassian.net/rest/api/2/search?jql=id = 12345 and project in (MYPROJECT)&fields=resolution,resolutiondate,project,updated,created,creator,reporter,assignee,summary,issuetype,status,worklog

 

Only a single worklog item is returned.  The other ones are missing.  We've tried making the user for the API Query into an administrator, but the results from the query have remained the same.

 

Any help would be much appreciated!  Thanks!!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Craig Nodwell
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 Champions.
February 4, 2023

From what I read the worklog is a map(an index) maybe you need to iterate through the map.
API reference

TAGS
AUG Leaders

Atlassian Community Events