Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,868
Community Members
 
Community Events
168
Community Groups

Json importer - paginated REST endpoint

Hi,

 

I'm trying to do an import in Insight via calling a REST endpoint with the json importer. This works fine, but unfortunately, the response is paginated (50 items per page), where the total is over 3000 items. The total number of items is available in the response, and with a "start"-parameter added to the url we can get the next page.

Is there a way to let Insight loop over the multiple pages, or do I have to configure a separate import for each page?

2 answers

1 accepted

0 votes
Answer accepted

Hi Joachim

Unfortunately there is no way to loop over multiple pages. Question, is it possible to make sure there is an "unlimited" parameter on the Endpoint, or to create another Import type for the same Data?
Maybe create a small application to extract all the JSON info and consolidate it into a File which can be imported? Or even a DB Import?

Hi Zihni,

I've found an alternative endpoint to get the full data for this request, but unfortunately this is not always possible. 

Creating a small application to concatenate this data is a possibility, but I was hoping that Insight could do it without this app...

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events