• Community
  • Products
  • Jira
  • Questions
  • How can I delete a private filter (user no longer exists) directly from the database (without using the SU or the Script Runner plugins)

How can I delete a private filter (user no longer exists) directly from the database (without using the SU or the Script Runner plugins)

Hi,

I need to delete a private filter, for a user that no longer exists - so I cannot login as the user and I want an alternative option for using the SU plugin.

How to safely delete it from the database? I know that for example there is an entry in the searchrequest table regarding the filter, but I want to make sure whether there are also other dependencies.

Thanks!

1 answer

Hi Alexandru,

The tables you need to handle are:

  • searchrequest
  • filtersubscription
  • columnlayout
  • columnlayoutitem
  • sharepermissions

You can write a db query to remove the filter and all it's references from the tables I mentioned OR you can modify the filter ownership in the searchrequest table to your user or modify the shares by adding a record in the sharepermissions table and then delete the filter from the JIRA UI. Note that if you modify the database while JIRA is running the changes will not be picked up by JIRA, so you'll need to restart JIRA. It's better to shutdown JIRA while modifying the database and start it after that. And last but not least - BACKUP YOUR DATABASE prior to any direct modifications.

 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,801 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot