Calling Object AQL API fails when value being filtered on contains a double quote

Girish Reddy
Contributor
December 6, 2024

I am calling Object AQL API to filter on a value. But the API returns a "token recognition error" when the value being filtered has a double quote in it.

When my body looks like this, the API returns successfully:

{

"qlQuery": "ObjectType = Suppliers AND Name = Test"

}
However when the value has a double quote e.g. T"est, the API errors out. I've tried various ways to encode including using single quotes, etc. None seem to work.
{

"qlQuery": "ObjectType = Suppliers AND Name = T\"est"

}

 

1 answer

0 votes
Girish Reddy
Contributor
December 9, 2024

Heard back from developer support and the right way to escape such values is: 

T\\\"est

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events