Forums

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

Get Dashboard widget details using Jira Rest API

Kusunuri Anish March 27, 2025

Hi Team,

We have a dashboard with a chart widget in it. I need to extract the data inside the widget. Is there any JIRA Rest API which can get the details ?

1 answer

0 votes
Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 27, 2025

@Kusunuri Anish 

Go through this link it details various endpoints that can be used for getting and creating dashboard and its widgets

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-dashboards/#api-group-dashboards

Kusunuri Anish March 27, 2025

Hi @Vishal Biyani

I went through all of them, but none of them are able to provide me with the widget Value details. I tried using Get Gadget, and it retrieves the below information, but not the values that are within the gadget:

"gadgets": [ { "id": 10001, "moduleKey": "com.atlassian.plugins.atlassian-connect-plugin:com.atlassian.connect.node.sample-addon__sample-dashboard-item", "color": "blue", "position": { "row": 0, "column": 0 }, "title": "Issue statistics" }

Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 27, 2025

I have done this a while back and it is tedious process to get the values.

Let me try and recall how I did it.

In the meantime, can you confirm which Chart widget you need details for like Workload pie chart, Pie chart or something else.

Kusunuri Anish March 27, 2025


It's doughnut chart.

Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2025

@Kusunuri Anish 

The way that I am aware about how to get the details is below.

In your dashboard, add a gadget that you want to create going forward using APIs (in your case doughnut chart) and configure it completly.

After that, call

GET -> https://{{domain}}.atlassian.net/rest/api/3/dashboard/{{dashboardId}}/gadget

get the id of the doughnut chart.

Then call this API

GET - https://{{domain}}.atlassian.net/rest/api/3/dashboard/{{dashboardId}}/items/{{itemId}}/properties

This call will give you list of the properties that need to be configured. based on your example above itemId will be 10001

 

Then do get the properties of each key call

GET - > https://{{domain}}.atlassian.net/rest/api/3/dashboard/{{dashboardId}}/items/{{itemId}}/properties/{propertyKey}

This will give all the values that need to be supplied to configure the gadget.

Once you the details, you can then use the APIs to

add gadget and configure the gadget.

As there is no documentation available that gives you key and value of various gadget, this is the way that I know of to make progress.

Let me know if you are able to move forward with this approach

Kusunuri Anish April 2, 2025

First of all Thank You,
I get the details in below format, when i use:

GET - > https://{{domain}}.atlassian.net/rest/api/3/dashboard/{{dashboardId}}/items/{{itemId}}/properties/{
propertyKey}

{
"key": "",
"value": {
"id": "",
"isConfigured": "",
"isPopup": "",
"name": "",
"projectOrFilterId": "",
"refresh": "",
"statType": "",
"type": ""
}
}

I think there's a confusion I don't want the values that need to be supplied to configure the gadget, I want to fetch the values that are being displayed in doughnut chart.

Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 2, 2025

Ah!!! I see.

What you are asking about is the gadget is rendered with data on browser. As the data resides on client side, REST API won't help.

In my opinion as the data resides on client side, the user will have to do web scrapping to extract this data. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events