Filters cleanup

Anuradha April 27, 2022

Hi Team,

 

In our Jira we have, 422500 filters, some of which are owned by disabled users. We want to cleanup.

we have below data with us:

 

Filter OwnerFilter Owner ActiveFilter NameFilter IDPrivate or SharedView PermissionsEdit PermissionsFavorite CountUsed in BoardsUsed in Dashboards

Any idea/best practice to check on cleanup?

like eg: for Inactive User, private we have 4786 to delete

for- inactive,private,favourite count-0 we have 708 filters to delete..

Any such ideas which can speed up our cleanup activity please help.

 

Regards,

Anu

 

3 answers

3 accepted

2 votes
Answer accepted
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 27, 2022

Hi @Anuradha and welcome to the community!

Wow - With that many, you may want to buy a script-savvy colleague a few cups of coffee to manage this through the API.  Here's the documentation on managing filters through the API:

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

0 votes
Answer accepted
Anzar
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.
May 5, 2022

Please accept answer on this comment if my answer above solves your problem.

It will just add a boost to my profilešŸ˜Š.

Regards,

Anzar Khan

0 votes
Answer accepted
Anuradha May 5, 2022

Is there any way to delete bulk filters using script runner?

Anzar
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.
May 5, 2022

Hello Anuradha,

The ability to bulk delete filters was considered as a possible enhancement in Jira before, however, the developers might have decided to not implement it due to the low number of requests:

https://jira.atlassian.com/browse/JRASERVER-68433

that being said, there is a possible workaround to this issue:

  1. Identify your filter ids by using the REST API Search for filters
  2. Once you have the filter ids, bulk deletes them by creating a script with the REST API to delete filters:
    DELETE /rest/api/3/filter/{id}

Let us know if you have any questions.

Regards,

Anzar Khan

Anuradha May 6, 2022

Hi Anzar, 

Thanks for your answer,

but first we need to find out who are the users who have favorited the filters,

Can I have some script or idea to fetch the favorited users?

because we have 3.5k filters created by users who are not active but these filters are favorited by single users and we want to find out who?

Please help..

 

Regards,

Anuradha

Anuradha May 6, 2022

adding to it.. these 3.5k filters are private.

Dasari Sravanthi September 21, 2022

In this case you can usee power admin app to get the private filters owned by inactive users. Let me know if that helps

Suggest an answer

Log in or Sign up to answer