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

0 votes
Craig Nodwell
Community Champion
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
TAGS
AUG Leaders

Atlassian Community Events