Escape URL in user macro

Ross Bender May 24, 2017

I have a user macro in which I am generating a URL from a parameter and thus need to encode the value. I have tried the following, trying to use EscapeTool:

$esc.url($paramText)

However, when the macro is rendered it is still showing as "$esc.url($paramText)".

I have tried all of the options for "macro body processing" and no luck. Any suggestions would be appreciated. Thank you!

1 answer

1 accepted

0 votes
Answer accepted
Stephen Deutsch
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.
May 29, 2017

$generalUtil.urlEncode($paramText) should work :)

Ross Bender May 29, 2017

Works great! Thank you

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events