Query string to filter on available object types for this API call returns empty

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 5.0.0, Insight 10.0.7
    • 1
    • Severity 3 - Minor

      Issue Summary

      https://docs.atlassian.com/assets/REST/10.4.4/#objectschema-findObjectTypeFlatList
      According to the Assets API documentation above, you can pass a query string to the API endpoint to filter on the available object types. However, when trying to pass a query string to filter the available object types, nothing is returned. Without the query string, all object types under the schema would be returned.

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Step 1: Send an API call at the following end point and pass a query string to filter on the available object types: /rest/assets/latest/objectschema/ {id}

        /objecttypes/flat?query=

        {StringToFilterForObjectTypes}
      2. Step 2
        Review the result of the API call

      Expected Results

      The expected result is that Assets will return all object types matching the filter in the query string

      Actual Results

      The actual result is that the response is empty, with a HTTP 200 status.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            Loc Nguyen (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: