When I call it with jql value: "Freshdesk TicketId[Number]"=${this.ticket.id}
It fails on said error.
While this is fine: cf[11111]=${this.ticket.id}
The only difference are the ". I tried it multiple times with and without the ", and tried escaping the characters, but nothing worked except removing the ".
This could be a potential issue for requests which need " around a value with spaces.
This expects the value to be a string that would be URL encoded and also wanted to understand what your HTTP endpoint for this API would look like, can you share a CURL command with your endpoint credentials masked?
Also food for thought, the encoding could be handled by the client (or whatever substitutes the values), handling it in code seems cumbersome.
URL encoding is taken care of by the platform. But in this case, I see multiple special characters and also quotes, so did you try something like this -