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

Error returned from JQL query is misleading

    XMLWordPrintable

Details

    • 3
    • 7
    • 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.

    Description

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? 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:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: