Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-63507

Error returned from JQL query is misleading

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • JQL
    • 2
    • 5
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

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

      Problem Definition

      1. go to issue search
      2. switch to advanced search mode
      3. type project = TEST AND status = "new"
      4. I got the same errors:
      • jqlTooComplex from QueryComponent!Jql.jspa
      • The value 'new' does not exist for the field 'status'. from rest/issueNav/1/issueTable

      where "new" status is non-existed status, when I type/select the status which exists then there's no error.

      so why throwing jqlTooComplex exception even though is not complex?

      Look at the following code from jira-issue-nav-components/src/main/java/com/atlassian/jira/components/query/DefaultSearcherService.java (issue-navplugin 6.4.28):

      // Is the query too complex to be expressed with searchers?
              final Query query = parseResult.getQuery();
              if (!searchService.doesQueryFitFilterForm(user, query))
              {
                  return ServiceOutcomeImpl.error(JQL_TOO_COMPLEX_ERROR_MESSAGE);
              }

      So every time the query "does not fit filter form" the "too complex" message is returned. IMO quite misleading error, because it has nothing common with too complex but rather incorrect values were used.

      Suggested Solution

      Add a validation to display the right exception.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ckimloong John Chin
              Votes:
              7 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: