Saving a JQL with redundant parentheses in JSM Queues results in parentheses being removed

XMLWordPrintable

    • 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

      1. Navigate the the JSM queues edit page.
      2. Insert a JQL with redundant parentheses eg: ((A AND B) OR C)
      3. Save the JQL
      4. 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.

              Assignee:
              Unassigned
              Reporter:
              Jesse Dennis
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: