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

2 votes
Vasiliy Zverev Community Champion Jan 12, 2016

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 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 Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

78 views 0 5
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