Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

liljoint
Contributor
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
atlassian, atlassian community, job interviews, interview tips, career advice, interview preparation, job search, interview experiences, hiring process, atlassian careers, community discussion, interview best practices

Interview Tips & Pet Peeves ✍️

Join the discussion on interview best practices and common pitfalls. Share your experiences and learn from others in the Atlassian Community.

Share you experiences!
AUG Leaders

Atlassian Community Events