Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-30467

Renaming a project or issuetype breaks filters saved with the old project or issue type name

    • 47
    • 40
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Assuming the following:

      1. I have a project named PROJECT with key PROJ
      2. I create a filter:
        project = PROJECT
        
      1. If I rename PROJECT to NEWPROJECT then the field produces

      Suggestion:
      Is it possible to bind the search to the project key or issue type ID instead? That way, renaming a project should leave filters unaffected.

      Workaround
      Edit the filters to update the project or issue type names

      OR

      Just noting here that you can save a filter that refers to a project by its ID rather than its name. If you do this, the saved filter will not be broken if you change the project's name.

      To find all your projects' IDs, go to https://<your site name>.atlassian.net/rest/api/3/project/search

      In the following example the id of my project is 10084:

      To use it in a filter's JQL you need to type project = 10084

      After changing the project's name, the saved filter referring to the project's ID continues to work:

      Whereas the saved filter that referred to the project name has broken:

        1. error.png
          error.png
          20 kB
        2. screenshot-1.png
          screenshot-1.png
          209 kB
        3. screenshot-2.png
          screenshot-2.png
          151 kB
        4. screenshot-3.png
          screenshot-3.png
          91 kB

            [JRACLOUD-30467] Renaming a project or issuetype breaks filters saved with the old project or issue type name

            Upvote - It's limiting us from developing the best solution for enterprise-level roadmap management within JIRA.

            Ronny Katzenberger added a comment - Upvote - It's limiting us from developing the best solution for enterprise-level roadmap management within JIRA.

            NiYunfan added a comment -

            Also see webhook JQL: project in (A,B,C) fails if rename A to X

            NiYunfan added a comment - Also see webhook JQL: project in (A,B,C) fails if rename A to X

            Despite the low number of votes, this is quite serious drawback. One rename operation destroys significant part of project/issuetype related functionality. Should it be a suggestion even? I'd say it is a Bug.

            Moreover, when you rename issuetype/project - there is no warning or any indication of such drastic consequences.

            Pavel Konstantinov added a comment - Despite the low number of votes, this is quite serious drawback. One rename operation destroys significant part of project/issuetype related functionality. Should it be a suggestion even? I'd say it is a Bug. Moreover, when you rename issuetype/project - there is no warning or any indication of such drastic consequences.

            This is true for "affectedVersion" and "fixVersion" as well i.e. if these versions get renamed, then the existing JQL queries which are written with these versions break.

            Mohajit Acharya added a comment - This is true for "affectedVersion" and "fixVersion" as well i.e. if these versions get renamed, then the existing JQL queries which are written with these versions break.

            Hello,

            I confirm there is still this bug under JIRA 7.2.2

            Corentin Méhat added a comment - Hello, I confirm there is still this bug under JIRA 7.2.2

            The problem is not only with filters Project names in JQL can appear also in agile board (quick filters, card colors, swimlanes) and in Confluence (JIRA macro, chart macros etc.).

            So if we want to change project name, it's not enough to change the strings in searchrequest DB table.

            Radek Janata added a comment - The problem is not only with filters Project names in JQL can appear also in agile board (quick filters, card colors, swimlanes) and in Confluence (JIRA macro, chart macros etc.). So if we want to change project name, it's not enough to change the strings in searchrequest DB table.

            I totally agree with Ben, the decision to use the name instead of the PKEY is the major reason for this disaster. This is a call for using PKEYs by default on filters as they are clearly less likely to change in time.

            Here are some starts from a JIRA instance with >200 projects, and >2000 filters. About 40% of the filters are broken, and ~90% of them due to project name changes, not keys, names.

            Sorin Sbarnea added a comment - I totally agree with Ben, the decision to use the name instead of the PKEY is the major reason for this disaster. This is a call for using PKEYs by default on filters as they are clearly less likely to change in time. Here are some starts from a JIRA instance with >200 projects, and >2000 filters. About 40% of the filters are broken, and ~90% of them due to project name changes, not keys, names.

            crownbd added a comment -

            Part of the problem is that the interface doesn't default to the project key convention. If you type 'project =', then select a project from the drop down list, it inserts the name, not the key.

            It seems that the most logical solution however would be for JIRA to store the ID under the covers, but display the project name to the user.

            crownbd added a comment - Part of the problem is that the interface doesn't default to the project key convention. If you type 'project =', then select a project from the drop down list, it inserts the name, not the key. It seems that the most logical solution however would be for JIRA to store the ID under the covers, but display the project name to the user.

            Dave Hong added a comment -

            Thanks Boris!

            I started to audit our project filters and noticed that all of mine are pre-bound to project keys.
            A few other filters that my teammates created are bound to project names. Looks like I need to bother them to change that convention...

            Dave Hong added a comment - Thanks Boris! I started to audit our project filters and noticed that all of mine are pre-bound to project keys. A few other filters that my teammates created are bound to project names. Looks like I need to bother them to change that convention...

            dave.hong You can do stuff like project=ABC, not just project="project name"

            Boris Berenberg (Inactive) added a comment - dave.hong You can do stuff like project=ABC, not just project="project name"

              Unassigned Unassigned
              ttzidamis Theodore Tzidamis (Inactive)
              Votes:
              78 Vote for this issue
              Watchers:
              60 Start watching this issue

                Created:
                Updated: