You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I am using Jira APIs (https://ict4dprojectservices.atlassian.net/rest/api/2/search?jql=) 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?
Thanks,
Vipin
@vipin_gupta Welcome to the community!
Here is answer as per your question,
fields=comment&fields=summary
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.
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.
Thanks,
Vipin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
'total' in response here means total number of issue that your query satisfy.
So, for maxResults=100&startAt=0 query your response,
for maxResults=100&startAt=5
You can take 'total' as maximum size of array and 'startAt' as starting index from where you are fetching sub array.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.