Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Insight API - Space in parameter returns duplicate child objects

terence_harvey
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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