JQL Enhanced Search REST API not returning results when searching for a exact phrase match by custom field

XMLWordPrintable

    • 4
    • Severity 3 - Minor
    • 15

      Issue Summary

      JQL enhanced search endpoint should function in the same way as the search through the UI.
      Currently exact phrase match is not working with the rest api, returning a empty array when there are issues being returned through the UI. This happens when exact search is used on custom field.

      Steps to Reproduce

      1. Have a text field in your project and have a ticket with a specific value (example: XXX)
      2. Make an API call to /rest/api/2/search/jql for that exact value
        (example: { "expand": "renderedFields,editmeta", "fields": [ "issuekey" ], "jql": "\"custom text[short text]\" ~ \"\\\"XXX\\\"\"" }
        )

      Expected Results

      The response should return an array including the ticket

      Actual Results

      { "issues": [] }

      Workaround

      Don't use the exact match \" for now

              Assignee:
              Krzysztof Kosciuk
              Reporter:
              Ana Viseu (Inactive)
              Votes:
              8 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: