Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-3457

Subquery in 'expression' JQL function isn't necessarily valid when expression script is being validated

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.6.1
    • Component/s: JQL Functions
    • Labels:
      None
    • Critical Points:
      0.8

      Description

      To reproduce:

      • Go to the issue navigator in Advanced mode and enter a JQL query using the expression function with a syntactically incorrect subquery, e.g.:
        issueFunction in expression("project = A B", "reporter == assignee")
        

        (The error in the above is that project names with whitespace need to be enclosed in quotes.)

      • Submit the query.

      Expected: A syntax error message appears for the subquery.

      Actual: A 'compilation failure' error message appears, quoting the syntax error.

        Attachments

          Issue Links

            Structure

              Activity

                People

                Assignee:
                jchoules Joanna Choules
                Reporter:
                jchoules Joanna Choules
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Structure Helper Panel