Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
2
-
5
-
Description
NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.
Problem Definition
- go to issue search
- switch to advanced search mode
- type project = TEST AND status = "new"
- 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
- relates to
-
JRACLOUD-63507 Error returned from JQL query is misleading
- Closed
- mentioned in
-
Page Loading...