The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • 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)

Alexandru Baltes
June 6, 2016

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Boris Georgiev [Appfire]
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 Champions.
June 6, 2016

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.

 

TAGS
AUG Leaders

Atlassian Community Events