JIRA REST API: Some Cards Are Missing Worklog Items

Andrew Wright 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

0 votes
Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 4, 2023

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

Suggest an answer

Log in or Sign up to answer