We want the old project key NOT to be used in JQL queries.

This question is in reference to Atlassian Documentation: Editing a Project Key

We want the old project key NOT to be used in JQL queries. Its getting in the way of those queries was the reason we changed it! How do we stop this unhelpful behavior?

1 answer

You'd have to remove the old project reference, which would make the old key not usable for any of fisheye integration, old issue references, etc.  The point to renaming a project is that you don't lose all of your old context, including searching.  I, personally, find this helpful, as otherwise everyone has to update their filters.

Actually, looking at the database, it would be project.originalkey you'd have to change.  I have not tested this in any way, but if you update that column I'd imagine it will cause JIRA (after re-indexing the project) to be completely unaware that the project had a different key in the past.

Just curious, how was the old key "getting in the way"?  If it's that you want to be able to quick search for that key as "text ~" instead of "project=", I've generally been successful just wrapping it in quotes in the search bar.

FYI, the history of Project Keys as used for HTTP redirects etc is stored in the ProjectKey table.

The Project.originalkey column is used for storage of Attachments on disk ... for legacy reasons we store files under the project key ... rather than moving 250TB of data on project update, we just keep using the originalkey just for attachment files.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

922 views 5 18
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
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