JQL autocomplete for project should select "Pkey" instead of "Pname".

XMLWordPrintable

      Problem
      There could be cases where a project name (Pname) is used as a project key (Pkey) of a separate project.

      When using the autocomplete on issue navigator, the JQL string get filled with the Pname.

      Steps to reproduce
      For example, if we have two projects (Pname) (Pkey):

      1. SUPPORT (ABCSUPPORT)
      2. Support Template (SUPPORT)

      Selecting the first project would create the JQL as:

      project = SUPPORT
      

      Selecting the second project would create the JQL as:

      project = "Support Template"
      

      Because JQL prioritizes project key, the first JQL returns results from the second project.

      Attaching a video demonstrating the problem.
      Work item search - Jira - 27 March 2026.mp4

      Proposal
      JQL autocomplete for project should select "Pkey" instead of "Pname" when filling up the JQL. This would make it aligned with JQL searches which prioritizes Pkey.

      When user selects the first project, the JQL should be filled up as:

      project = ABCSUPPORT
      

              Assignee:
              Unassigned
              Reporter:
              LenardLee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: