[via Google Translate]
I’m developing an app to perform some reporting operations on issues created throughout the year here at the company.
But I’ve encountered two limitations:
-
searching for these issues using the Jira API (/rest/api/3/search/jql) but, even though the limit is 5000, it’s not returning even 50 and I need to return around 1000 cards, how can I achieve this?
-
also when I try to save to storage the result doesn’t save even 10 issues, how can I increase this limit too?
thanks
For the first limitation, you can change the maxResults
to increase the chances of getting more cards, but if you’re returning a lot of fields (especially with a lot of data), Jira limits the responses for each call regardless. You have to loop through the responses to get them all.
For the second, Forge has set storage limits. It’s not possible to increase these. You’d have to split the storage into multiple keys.
[by google translator]
Hi AaronCollier, thanks for the reply, but I’ve already tried the steps you told me, but when I do this loop to get more results, Jira also blocks me due to the high number of requests.
Can you help me with a strategy to solve this?
That can be tricky. If you’re using storage, you can set up a queue to do it async. You can set the queue to retry after a minute if it hits a rate limit.