Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage


I am using Jira APIs ( to get information out of the system and have the following questions.

1. Max result set size is 100, how can I increase the size.

2. I am not able to get comments related to issues, using APIs.

3. How can I get the attachments for the issues?




1 answer

1 accepted

0 votes
Answer accepted
DPK J Community Leader Feb 10, 2020

@vipin_gupta  Welcome to the community!

Here is answer as per your question,

  1. Max Result for JQL issue search API can't be more than 100 (it is max set by Atlassian), so if you want to fetch more data, you need to use startAt in combination with maxResults parameter.
  2. To get comments, you need to pass parameter named 'fields' with value 'comments'.
    • fields=comment&fields=summary
  3. Similar to comments you can also add attachment to fields,
    • fields=comment&fields=attachment

Thank you for the prompt reply, very useful.

Another question regarding startAt parameter.

I am using URL

I am getting below message.

Start At 0.jpg

This means I am getting 498 issues. So when I will set startAt parameter as 5, I should get empty response. But that is not the case, I am getting data with startAt parameter as 5

Please advice how to use startAt parameter so that code can end the loop.



DPK J Community Leader Feb 10, 2020

'total' in response here means total number of issue that your query satisfy.

So, for maxResults=100&startAt=0 query your response,

  • Here you are getting first 100 issues (starting from 0) out of total 498 issues

for maxResults=100&startAt=5

  • Here you will get 100 issues out of total 498 starting from 5th issue

You can take 'total' as maximum size of array and 'startAt' as starting index from where you are fetching sub array.

Thanks DPK. This is so helpful.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

Confluence Bingo Round 3!

That’s right! Grandma’s back at it again, and this time she’s brought all her friends. In honor of Team '21, this Bingo round is dedicated to all things team-related, and the prizes are no exception....

3,156 views 31 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you