Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

it has as a limit of 100 per api request ,so running it in a loop it is giving a time out error

G Bala Rohith Reddy
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 2, 2025

in ScriptRunner under scheduled jobs i hvae a code that can update a custom field in evevry project,but in cloud jira we have a limit of 100 per API request,so ima running it in a loop of 100 per batch.now I am facing time out issues.

 

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
3 votes
Answer accepted
Kai Krause
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 2, 2025

Hi and Weclome, 

in Jira cloud you have an rate limiting on api calls . 

Rate limiting 

You can setup your scriptrunner script to handle the rate limiting. 

The response code indicates that too many requests were sent in a short amount of time. 
  • Check if the HTTP response status code is 429 
  • Look for the following headers in the response: 
    • X-RateLimit-LimitThe maximum number of requests allowed 
    • X-RateLimit-RemainingThe number of requests remaining 
    • X-RateLimit-Interval-SecondsThe time interval between batches of new requests 
    • X-RateLimit-FillRateThe number of requests in each batch 
    • Retry-AfterThe number of seconds to wait before retrying the request 
    • X-RateLimit-ResetThe date and time when the request can be retried 
    • X-RateLimit-NearLimitIndicates that less than 20% of the request budget remain

      With that information you can handle proper the rate limits

      BR
      Kai
0 votes
Matt Doar _Adaptavist_
Community Champion
April 2, 2025

Why do you need to update the field in every issue in every project?

TAGS
AUG Leaders

Atlassian Community Events