Copy filters between JIRA instances


we are currently merging two JIRA instances on 1 instance for several reasons.
I still have 1 issue: Is there a way to copy the existing (personal) filters of all users between the JIRA instances?
The users of both instances are identical.

Has anybody an idea of how I can avoid to copy 1200 filters manually?

Thank you!

3 answers

1 accepted

Hi all,

thanks for the response.

I considered inserting them directly in the database, but found it too tricky.

Besides that, this is an opportunity for the users to clean up their filters ;-)

So, we are manually moving them. By making an export of all existing filters, I could provide all users an nice overview of their saved filters, which made it a little bit easier.

Kind regards

0 vote

There is no easy way to do it. You can explore copying the filter details via database tools/queries but I haven't tried it before myself.

Hi Gerd,

When I created a new filter, the below two SQL are executed

INSERT INTO public.searchrequest (ID, filtername, authorname, DESCRIPTION, username, groupname, projectid, reqcontent, FAV_COUNT, filtername_lower) VALUES ('10200', 'My Test Filter', 'sysadmin', 'null', 'sysadmin', 'null', 'null', 'project = SAC', '0', 'my test filter')


INSERT INTO public.favouriteassociations (ID, USERNAME, entitytype, entityid, SEQUENCE) VALUES ('10200', 'sysadmin', 'SearchRequest', '10200', '0')

So my suggestions is you just need to copy all data on public.searchrequest and public.favouriteassociations tables from your old JIRA database to your new JIRA database.

Best Regards,

Steven

If you do this, make sure the IDs are changed appropriately and, more importantly, change the seqId in sequence_value_item table for the affected entities.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

919 views 3 12
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