Hello:
I'm developing an APP to retrieve some info from Tempo. I'm trying to link Tempo Worklogs with Jira worklogs, so I'm using tempo-to-jira endpoint to get the data.
When asking for the first batch of data, using:
https://api.tempo.io/4/worklogs/tempo-to-jira
I get 50 records, and a URL for the second batch:
The duplication you're seeing (e.g., the first 4 entries of the next batch overlapping with the previous one) could be due to data updates happening between calls, especially if worklogs are being edited or added during your fetch process.
However, if you're seeing consistent overlaps, it could also be an issue with how the offset is calculated on Tempo’s side. I would suggest trying to enable sorting (sortBy=date) in the request to ensure deterministic pagination.
About the Request Body, for this endpoint (/worklogs/tempo-to-jira), it's not typical to pass values in the body as it's a GET request, and most filtering is done via query parameters like:
You don't need to include the list of retrieved values in your request body as Tempo’s API handles the pagination and should return consistent results if your date range and parameters are fixed.
As a solution, I would suggest
Basically, the GET call would look like:
GET https://api.tempo.io/4/worklogs/tempo-to-jira?from=2024-01-01&to=2024-01-31&offset=0&limit=50&sortBy=date
Please remember to vote and accept this answer in case it helps you resolve your question.
Regards,
Eugenio
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.