Get all Filter id's of Jira Dashboard

Logeshwari February 19, 2024

I need to update JQL in all filters of a particular dashboard

Trying to automate using jenkins job.

I am able to update single  filter JQL using Rest api.

But how do i get all filter id's of a dashboard using api or SQL

1 answer

0 votes
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 20, 2024

Hi Logeshwari,

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.

Regards,

Kristian

Logeshwari February 21, 2024

Hi,

Yes those api are not working for me. I am working on Server and those are cloud API's

can you please see the screen shot

postmanimage.PNG

Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 21, 2024

Hi Logeshawari,

Ok. You categorised this community answer for Cloud which is why the response was based on Jira Cloud.

For Jira server, I would advise re-posting the question and tagging it for Jira server/ data centre.

Regards,

Kristian

Suggest an answer

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

Atlassian Community Events