Forge App Jira Service Management REST API Limit

Hi,

Right now, I’m working a Forge app that will request “Create customer request” Jira Service Management API. How the app work is like below

  1. User submit a request in Portal and upload an excel file as attachment.
  2. Forge app will listen for “avi:jira:created:issue” and will read the excel file and every 1 row in excel file, it will trigger [“Create customer request”](https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-post API.
  3. I’m using async event for this process. The forge app will push the row one by one to queue and already set a delay queue with interval 10 seconds. I understand the maximum delay you can set is 15minutes (900seconds).
  4. For example, if the excel file has 60 rows, it will create 60 customer request.

My problem is sometime the forge app successfully created all the request and sometime a few request failed to create. For example, from 60 request, 10-20 request failed and it happens at random request. Maybe it will fail at 10th request or 19th request. The pattern is not consistent.

The error I got is 429 Too Many Request.

The error message is “We’re having some trouble submitting this request. Raise a different kind of request, or try again later.”

The error response is {"size":0,"timeout":0}

Is there any rate limit for the JSM API and seems like I can’t find it in the documentation?

And is there any way I can see if the API key hit the limit? For example, if I can see the report or usage history.

2 Likes

@FaizHalim,

Yes, there are rate limits. You can find the details within the Jira platform docs.

@ibuchanan Thank you for sharing the link but how do I know what the rate limit number is and when it will be reset because the headers don’t have Retry-After and X-RateLimit-Reset.

If the headers contain Retry-After and X-RateLimit-Reset, easier for developer to troubleshoot. Right now, what I do is try and error. I can see there is one ticket related to this. [ACJIRA-2255] - Ecosystem Jira but the status still Gathering Impact.

2 Likes