How to change projectKey if before this key was used by other project

Hello!

I have project with

SSD key name "SSD private project" 

SDD key name "SSD public project"

And I shuld change keys:

SSD -> SSDP

SDD -> SSD

First (SSD -> SSDP) was sucsessfully changed re-indexed, but the second (SDD -> SSD) not changed. I have error message: Project 'SSD private project' uses this project key.  But it's impossible I changed this project key.

After restart JIRA have the same situation.

What should I do?

 

1 answer

1 accepted

All project keys are stored into table project_key. Use this SQL to get a record for requared project key:

select
	project_key.*
from
	project_key
where
	project_key.PROJECT_KEY = 'ED'

The you need to delete this record. Be very careful when delete somethink via SQL.

ATTENTION:

  1. MAKE A BACK UP OR TRY THIS ON TEST JIRA INSTANCE FIRST
  2. DO NOT DO ANY DELETE FROM DATABASE IF YOU ARE NOT SURE WHAT ARE YOU DOING

If you do this, you could break the code that allows historical lookups, so it's strongly advised that you do NOT do it. It can't handle a case where Create ABC-123 Rename project, or move ABC-123 to another project, so it's now DEF-456 Hack database Create new project ABC When you create a new ABC-123, you now have two historical issues for it...

ok Thans! I think beter to leave it

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published 2 hours ago in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

22 views 0 3
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