Mapping multiple API calls from rest API

We are working to import and build reports from TestRail using the rest API
First attempt is leveraging two APIs using JSON.
Then trying to combine the data for EazyBI

We are some some trouble, e.g.
first API simply has testcase data and includes a ‘milestone ID’
To get data regarding the milestone, one has to query another API with the milestone ID
We are pulling both but having trouble properly mapping the data.

Hi @Owen,

Have a look at the eazyBI documentation page regarding data adjustments with custom JavaScript code - https://docs.eazybi.com/eazybi/data-import/data-adjustments-using-javascript#DataadjustmentsusingJavaScript-FunctiongetDocument.

In the example, the getDocument function is used to retrieve Sprints from by Board ID’s that are retrieved in the original REST API call. The use case is quite similar to yours.

Best,
Roberts // support@eazybi.com

Thanks Roberts,

From a developer working on the import,
fetching some data from an TestRail API, which I have configured, now in the data part there are some reference ids for which I need to call another API to fetch corresponding data for the ids

as of now I’m just trying to check how we can use getDocument function to fetch data from another API,

results = getDocument( “https://digitalturbine.testrail.net/index.php?/api/v2/get_milestones/4”, {ignoreErrors: [400]});
console.log(results.id);

I’m not getting logs for the above mentioned example