Get all project issues

Hi all,

I’m trying to get all issues from a projet via Jira Cloud rest API. When looking at the project “all issues” view in Jira, I see the project contains 160 issues.

When requesting all issues via rest API using:

/rest/api/2/search?jql=project=" + [project id]

I get the following response:


The response shows a total number of 160 issues (total attribute). But the issues array’s length is 210. What is the cause of this difference?

Thank you!

Best regards, Fred

Could it be that you only saw parent tasks in the UI? But that the REST API is returning subtasks also?

Hi @jbevan,

No, no sub task is present in my case. Problem might be in my code, as I had promises running in parallel the same request. I can not reproduce the problem when I sequencially download the issues (because of pagination) with serial requests…

Thank you!

1 Like