I'm trying to display gadgets of a dashboard in confluence page. I was able to gadgets of a dashboard using this rest API: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-dashboards/#api-rest-api-3-dashboard-dashboardid-gadget-get
Response of the API call:
{
"gadgets": [
{
"id": 10131,
"uri": "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:pie-chart-gadget/gadgets/piechart-gadget.xml",
"color": "blue",
"position": {
"row": 0,
"column": 0
},
"title": "Pie Chart"
},
{
"id": 10111,
"uri": "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:in-progress-gadget/gadgets/in-progress-gadget.xml",
"color": "blue",
"position": {
"row": 1,
"column": 0
},
"title": "Issues in progress"
}
]
}
How can I use this response to display the dashboard gadgets in confluence page using forge app. Can anyone help me with this ?