Hello,
I want to print a dynamic url with blank in a task.
Example:
In the plugin is the following syntax to fill the field description:
http://test.de/docs/{{version.name}}/test.pdf
After creating the task, the following text appears in the description field:
http://test.de/docs/Test 19.0/test.pdf
The problem is now the blank in the url. This breaks the url.
Is there a solution?
Regards
Daniel
Glad to see you found a convenient solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
Strings have a method to URL encode them. The following should work:
http://test.de/docs/{{version.name.urlEncode}}/test.pdf
More info on encoding can be found at - https://docs.automationforjira.com/reference/text.html#encoding
Hope that helps.
Cheers,
Nick [Automation for Jira]
Co-founder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Before I wrote here I had already tried that and that did not work.
The urlEncode turns a blank character into a + sign.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apologies but you are correct. When the space is part of the path it should be encoded into "%20" but when it is part of the query it should be "+". sigh...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
blank spaces in URLs must be introduced as %20.
If nothing else comes up you could simply use Test_19.0 as a workaround.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.