• 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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,364 views 15 19
Read article

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