Is it possible edit multiple filters using JQL

Hello,

Suppose I have a user who has 150 filters. Some os these filters (I do not know how many) are using a custom field "Address", but we need to change the CF string to "Local Address".

I'm using this JQL:

 

update searchrequest set reqcontent = replace(reqcontent, 'Address', 'Local Address');

 

The customfield is updated, but only in my database. If i open some filter, the option Address is not update to Local Address.
I tried to stop and start the JIRA service, but is not working too.
Is there any alternative the update in real time?

1 answer

0 vote

That is NOT JQL.  JQL is for searching for issues.  You are running SQL, which you should NEVER use on a JIRA database.  I'd strongly recommend undoing the damage you've done and restarting again.

I'd still avoid it - you've already discovered that it's not working. I think it should work in theory, but I'd also say you absolutely have to have the system offline. There's only one minor thing I would change with SQL in a running JIRA (and I don't need to since 6.1)

ok, so do you have some idea how we can change (replace) multiples filters at once? Jira admin interface does not have this option. Is there some add on (free, of course)?

I'm afraid not any easy ones. At a glance, Jaime's SQL should have worked, if you do it on a shut-down JIRA, so that may be worth a look. (Sorry, my original answer should have included "an active jira database"). But as it's not done anything at all, that suggests that there is an issue with it. The other trick might be to try it with the script-runner addon. You could do the filter updates with that, but I'm less sure about finding them.

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...

925 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