URL Parameters get cleared up to the first whitespace

  • Goal: I have created a JIRA API resource I'm using. I'm passing a jql string as a URL parameter. I want it to be fully there when I refresh the page. So if I do any edits to the query it won't replace this parameter with part of the intended value

  • Steps: I'm having a long string with multiple whitespaces inside (and I'm not using url-friendly symbols).

  • Details: It actually works even when the url parameter is cleared (it is cleared only visually), but if I need to do any other changes to the query, then it would re-read the url parameter and replace it with cleared one

  • Screenshots:


Hello @gritradir Welcome to the Retool Community,

The most reliable solution is likely to store your complete JQL string in a Retool variable or a hidden input field and then reference that variable/input in your JIRA API resource's URL parameters. This should ensure that the full JQL string is always used, regardless of visual glitches in the Retool UI.

Variable Approach:

  • Create a Retool variable.
  • Set the initial value of this variable to your long JQL string.
  • In your JIRA API resource, set the URL parameter.
  • If you need to modify the JQL, update the variable.
3 Likes

Hi @gritradir,

Thanks for reaching out about this. This behavior is a Retool bug that we are tracking. The bug is in our backlog, so I don't have an eta for a fix, but this is the suggested workaround if you don't go with the variable suggestion listed above:

Wrap your url param in double curly brackets {{}} and quotes `` like this:

{{`project = SWAT AND resloutiondate >= startOfYear() and originalEstimate >0 ORDER BY resolutiondate DESC`}}

2 Likes