Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to display dashboard gadgets using rest api on confluence page with forge app

Kumar January 19, 2024

   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 ?

1 answer

0 votes
Nikola Perisic
Community Champion
January 20, 2024

Hi Kumar,

I understand what you are trying to accomplish here. This would not be possible since Confluence doesn't have the macro for dashboards except the ones that are tied to Confluence.

However,you can paste the JSON code in your ticket,then you can insert Jira issues on the Confluence page and then reference from there.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events