Insight API - Space in parameter returns duplicate child objects

terence_harvey April 22, 2021

Hi all

I have a URL with a space in a parameter (https://localjira.site.example/rest/insight/1.0/iql/objects?objectSchemaId=6&iql=objectType=%22Device%20Model%22) which I am using to attempt to return Insight objects. 

The resultant JSON array contains the expected number of items, but each item in the array is mostly a duplicate. 

If I run the same URL but use an objectType parameter value without a space (for example (https://localjira.site.example/rest/insight/1.0/iql/objects?objectSchemaId=6&iql=objectType=%22Manufacturer%22), the data comes back as expected.

Is there perhaps anything that I am doing wrong? Or is there a mechanism which has to be used to cater for spaces in parameters?

 

Thank you in advance.

1 answer

0 votes
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 24, 2021

Can you elaborate on what you mean by "each item in the array is mostly a duplicate"?

Perhaps provide some example of what you are getting and how it differs from what you expect?

I tested this scenario in my environment and the JSON appears correct in both cases. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.14.0
TAGS
AUG Leaders

Atlassian Community Events