Forums

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

Is it possible to get a list of filters with the REST API?

Guy Matz June 26, 2018

Hi!  I need to delete a bunch of filters . . .  I know I can use the REST API to remove a filter if I know the ID:

https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/filter-deleteFilter

 

But how can I get a list of filters?!  "Get filter" requires the filter ID to be passed to it:

https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/filter-getFilter

 

If only it returned all filters when no filter is specified . . .

 

Any ideas out there?

 

Thanks,

Guy

2 answers

0 votes
Nic Brough -Adaptavist-
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.
July 2, 2018

I'm afraid the REST API does not have a way to do this yet.  Closest you can get is "current user's favourites"

0 votes
Alexey Matveev
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.
June 26, 2018

Hello,

You can open a page in Jira, where you can see all filters, go to Developer Tools in your browser and have a look, what calls are made by the page to get all filters.

Guy Matz July 2, 2018

But that's not using the REST API . . .

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events