Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-75644

When I'm trying order search results by entity property without specifying order I'm getting an exception

    XMLWordPrintable

Details

    Description

      Issue Summary

      Ordering search result by entity property without passing `ASC/DESC` is impossible.

      Steps to Reproduce

      1. Create add-on with searchable entity property (https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/#making-searchable-entity-properties)
      2. Create a query like 
      order by issue.property[myEp].beataIsSuper

      (Where `myEp` is entity property name and `beataIsSuper` is one of extractions)

      Expected Results

      Results are sorted (in some default order ie. DESC).

      Actual Results

      An unknown error occurred while trying to perform a search.
      

      Workaround

      Pass `ASC/DESC` at the end of the query.

      Attachments

        1. Screenshot 2020-11-30 at 12.28.48.png
          24 kB
          Beata Szturemska
        2. Screenshot 2020-11-30 at 12.29.03.png
          49 kB
          Beata Szturemska

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bszturemska@atlassian.com Beata Szturemska
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: