Jira Server 7.3.8 Rest API: Pagination not working for worklogs

We successfully use pagination to retrieve worklogs using Jira Cloud c5202d1b. However, Jira 7.3.8 and Jira 7.7 seems to be repeating the first page of data for every page.

Note: Pagination of Epics works fine on both Cloud and Server versions.

Below are log fragments of the request and response for the first two pages. Note that the value of “startAt” of the second page is still 0, not 50 as it should be. When using Jira Cloud startAt for the second page is 50 as expected.

Log Fragment: for First Page:
/rest/api/2/issue/12289/worklog?maxResults=50&startAt=0, Get Response: {
"startAt": 0,
“maxResults”: 693,
“total”: 693,
“worklogs”: [
{

Log Fragment for Second Page:
Get Endpoint: /rest/api/2/issue/12289/worklog?maxResults=50&sstartAt=50,
Get Response: {
"startAt": 0,
“maxResults”: 693,
“total”: 693,
“worklogs”: [
{

It should be noted that the Jira Cloud testing and Jira Server testing are performed on different Jira data sets. However, if there is no bug in the paging, this should not matter. Is there a pagination bug in 7.3.8 and 7.7? If not, why is this happening? If there was a bug and it has been fixed, in what version does the fix first appear?

Hi @etotte can you please raise a bug ticket at http://go.atlassian.com/devhelp so our Developer Support team can triage it.

Hi @etotte,

I was able to replicate the issue on different Jira Server versions. I created https://jira.atlassian.com/browse/JRASERVER-67157 on your behalf. Kindly track the progress from there.

Cheers,
Ian

2 Likes