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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published yesterday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

447 views 6 7
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