Unable to get more than 1000 records for jira links | Community
Skip to main content

Unable to get more than 1000 records for jira links

  • January 10, 2022
  • 3 replies
  • 0 views

Grant15

I'm trying to make this API call: 

https://mycompany.zendesk.com/api/services/jira/links

Recently, we crossed 1000 records and the call seems to be limited to 1000 records.

I've tried to page using the following parameter, "page=2" but it always returns the first 1000 records. Any guidance on how to get the rest of the records would be appreciated.

3 replies

Eric27
  • January 11, 2022
Hey Grant,

The pagination is a bit different than what you'd expect. You can go to the next page by specifying the next record you'd like to see. In our example, the last record is for ticket id 5000 so the url would be https://{subdomain}.zendesk.com/api/v2/jira/links?page[after]=5000.

Hope this helps!

Kahele
  • March 31, 2022

 

Hi Eric,

Hope this day finds you well.

The API listed here doesn't work for pagination.

https://developer.zendesk.com/api-reference/ticketing/jira/links/

 

Following the example posted here:

https://developer.zendesk.com/api-reference/ticketing/jira/links

results in an error. 

Trying to use the API with pagination results in an error.

$ curl -u account:password -X GET "https://ourcompany.zendesk.com/api/v2/jira/links?page[after]=1000"

curl: (3) bad range in URL position 57:
With a caret designating an error, pointing directly underneath the opening brace for [after]
                                                                                ^^ error message


Regardless of whether I single quote, double-quote, or unquote the URL.

Whereas, trying to use the API without pagination works perfectly, I get exactly 1000 records.

But I have over 2k records I need to get, with Jira links. 

Thanks for any help.

K


Malcolm12
  • August 29, 2022

Hi Eric, 

I am having the same results as Kahele if you're able to address for us. Is pagination broken on this endpoint? 

Thank you,

Malcolm