Fetching worklogs From Tempo(Jira Plugin) in Loop

Hello All,

I am trying to fetch the work logs from Tempo which is a Jira Plugin to record the time of the resources.

The challenge that I am facing is, Tempo has a limit of the number of records that are being returned in 1 API call which is 1000 and i am expected to get a total of around 8000 records which requires me to do at least 8 more calls to know that, the whole data is fetched.

I tried using the Has Next and Next URL feature which is available in REST GET, but the results are not consistent.

In execute mode and in validate mode the results are completely different, can someone please help me how do i achieve this.