Overview
This article explains how to add and configure a new datasource for Custom Reports.
On this page: |
Add a Datasource
From Dashboard Hub, click and select Add Datasource. The datasource selection window displays.
Select Custom Report. The Custom Report configuration form displays.
Provide a descriptive name for the datasource.
Enter the URL of the REST API you want to connect to for fetching data (that is, the URL of the product providing the content for your report)
Select an authorization type (see Authentication types in Custom Reports datasources) and enter any required values for that selection. Basic Auth is recommended for this purpose.
Click Add to create the datasource.
Add a Custom Report
From your dashboard, add a Custom Report.
In the configuration window, select Load Template if you already have a saved report. Or create one with the provided content to list issues from a Jira datasource.
Select the datasource added previously. In the provided example, you need to add a Jira datasource and a JQL query Jira in the provided example.
Click Open Editor. The JSON for the fields in the datasource displays and can be configured.
Download this JSON response here:
Jira issues example. Descriptor to list Jira issues in a table:
{ "type": "rest", "uri": "datasource://jira/rest/api/3/search?jql={$initial.jql}&maxResults=5", "children": [ { "type": "table", "path": "issues", "columns": [ { "header": "Issue", "accessor": "key" }, { "header": "Summary", "accessor": "fields.summary" }, { "header": "Status", "accessor": "fields.status.name" } ] } ] }