Create a dynamic url link in Confluence with username embeded

We use Confluence for our intranet and I'd like to create a URL link that goes to an external forms tool like Google Forms, Wufoo, etc.  BUT I want to pass the Confluence username as a parameter in the URL so it can be auto-filled into a field value in the target form.  That way, I won't have to ask the user for their Name when they fill out the form.

Example URL:  http://www.wufoo.com/myformname&name=JSmith

Thanks in advance for any suggestions

-chris

2 answers

1 vote
Stephen Deutsch Community Champion Jan 04, 2016

Pretty easy with a user macro:

## @noparams
<a href="http://www.wufoo.com/myformname&name=${req.remoteUser}">Fill in form</a>

You should be able to adapt it for your needs smile

Thanks, that did the trick.

If you have the Run Self Service Reports add-on, here is one approach:

  1. Add a Run without a user form macro to your page
  2. Embed the link you want to display. 
    1. It is a Web link.
    2. In the address field put http://www.wufoo.com/myformname&name=$current_user_name

You can see the other variables available for substitution at https://bobswift.atlassian.net/wiki/display/RUN/Pre-defined+variables

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

381 views 21 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you