-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Low
-
Component/s: Queues
-
None
-
1
-
Minor
-
12
Issue Summary
When saving a JQL in the JSM queue editor, any extra parentheses will be removed leaving only the minimal set of parentheses required to keep the same semantic query.
Examples
- ((A OR B) AND C) -> (A OR B) AND C
- (((A AND B) OR C) AND D) -> (A AND B OR C) AND D
In both cases AND has higher precedence than OR making parentheses technically redundant in cases like (A AND B) OR C.
While this has no effect on the results of the query, it does cause visible changes in the saved JQL and can make editing the JQL more complex.
Steps to Reproduce
- Navigate the the JSM queues edit page.
- Insert a JQL with redundant parentheses eg: ((A AND B) OR C)
- Save the JQL
- Reload the page
Expected Results
The JQL saves exactly as provided by the user - including parentheses
Actual Results
The JQL saves correctly, but redundant parentheses are removed from the query.
Workaround
Currently there is no known workaround for this behaviour.