Details
Description
Problem
When a project is renamed and its key changed, if you create a new project that uses the same project name the old one had, but with a different project key, the JQL project=ProjectName will return the issues from the old project, not from the new one.
Environment
Jira Server and Data Center
Steps to Reproduce
- Create a new project called PMASTER with key PMASTER
- Rename the project to POLD and the key to POLD as well
- Create a new project with the name PMASTER with key PMAS (not PMASTER)
- When using the advanced search, if JQL is "project = PMASTER", the results are the issues from project "POLD"
Expected Results
JQL project=PMASTER returns the issues from the new project PMAS, not from POLD.
Actual Results
Only issues from POLD are returned
Workaround
Use the Basic Search or the new Project Key (e.g. for the example above, project=PMAS)
Notes
This is not the same issue from JRASERVER-35250, although it might be related. Note that in this case, the first project was renamed already, prior to creating the second one.
There are also some other workarounds in the below article that may help in this case: