How I can use GET-parameters on a User Macro?

liljoint March 5, 2012

how I can use GET-parameters on a User Macro????????? CONFLUENCE 4

1 answer

0 votes
Remo Siegwart
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.
March 5, 2012

If your URL is like http://path.to.your.confluence/display/YOURSPACE/Yourpage?yourparameter=yourvalue, you can access the parameter like this:

## @noparams
$req.getParameter("yourparameter")

In this example the output of the macro would be "yourvalue".

Hope this helps

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events