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 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
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

224 views 0 6
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