Follow these instructions before you pull massive data into any 3rd party apps, such as eazyBI or PowerBI, either from Cloud to Cloud or Cloud to Data Center.
\uD83D\uDCD8 Instructions
Currently, the Tempo API gateway has a rate limit of 5 requests per second, regardless of the connection types: Application access, user token, or OAuth2 connection. The largest dataset stored in Tempo is from worklogs . The number of results returned is based on your REST call parameters, so try to avoid getting months of worklogs in one single call. Instead, it’s recommended to write a script to loop through user/issue/week with pagination for better network traffic and server performance. You can narrow down your query with the following parameters:
-
Use a shorter time frame, such as by day or by week (instead of by month)
-
Use a single user (instead of teams)
-
Use pagination
-
Use a limit (default: 50, maximum: 5000)
Please follow closely the guidelines in both https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/ and Tempo https://apidocs.tempo.io/ .
Do’s and Don’ts:
-
Test out your script to make sure there are no errors.
-
Monitor your usage for timeouts (1 second or more) and retries (maximum 3 times).
-
Have no more than 5 requests per second
-
Max 3 batches of 5r/s running in parallel (5r/s * 3 = 15r/s) by memory zone of 10mb
-
Wait at least 1000ms between each request.
API error codes and retry recommendation
|
ERROR CODE |
MEANING |
RECOMMENDATION |
|---|---|---|
|
4xx |
Client side error |
Do not retry; you need to fix the problem in the code |
|
429 |
Too many requests |
Retry after at least 1 second; avoid bursts of requests |
|
5xx |
Error on server side |
Retry 3 times with 5-, 10-, and 15-second pauses between retries |
If you fail to follow these recommendations and cause traffic overload on the Tempo API server, Tempo will take the drastic measure of blocking your IP from accessing the API server. In this case, please contact Tempo Support for further assistance.
\uD83D\uDCCB Related articles
- Best Practices for Tempo Cloud REST API
- Tempo Data Center API
- Can I use the JIRA OAuth authentication for Tempo Data Center REST APIs
- Where can I learn more about your APIs?
- Creating worklogs for a period of time using the Tempo REST API - Data Center
- Import worklogs using the Tempo REST API on Data Center
- Import plans using the Tempo REST API on Data Center
- Username changed but it does not update in Timesheet and in REST API's (Data Center)
- Changes to our REST API (Cloud)
- Managing Worklog Limits for Reporting (Data Center)
- Timesheet approval REST API on Cloud and Servlet API on Data Center
- API's
- How Tempo handles Jira user changes
- Different ways to log time with Tempo and Jira
- Username does not appear in the export anymore, why is that?
- Creating Tempo Plans from a Jira Sprint on Data Center
- Data Center API - Updating workload schemes using a spreadsheet and the command line with private endpoint
- Data Center API Error: "Missing value for the required work attribute 'xxx' "
- Creating a worklog with work attributes using the REST API
- Username field missing from REST results and exported reports (Cloud)
- Changes made to the Jira SPI in Tempo Timesheets version 10.19.0, Tempo Planner 7.19.0 and Tempo Budgets 13.19.0
- Generic Resource private API's on Data Center
- "Invalid grant" error when using the Tempo Cloud REST API