So I want to get the custom JQL of every gadget in every dashboard. I hoped that the endpoint https://your-domain.atlassian.net/rest/api/3/dashboard
would be enough, but it is not.
I then tried https://your-domain.atlassian.net/rest/api/3/dashboard/10201/gadget
, but it only gives you the ID, title, position, etc. of the gadget — not really useful information.
Is there any way to get this info?
My main objective is to check if there is a dashboard that uses a custom JQL with the name of a status that has been changed. We have a lot of dashboards, and it’s not viable to search through each one manually for this information.
Thanks in advance!
Since most gadgets are based on filters, you should query filters instead of dashboards, as the gadgets typically use filters saved in the system.
You can query the filters via this endpoint. As an admin, you’ll be able to access all filters by providing the overrideSharePermissions parameter.
Reviewing the rest API inside of Jira Cloud, it shows that there is no single way to get this information.
To do this, you first need to call the Get Dashboard Gadgets endpoint documented here to return a list of all gadgets on the dashboard and to store their ID's in a variable.
You then need to call the Get Dashboard Item Property Key for each ID using the property key of config to get details of the configuration of each dashboard gadget and if it has a filterId in its config, then you can extract this to update.
I hope this information helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.