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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

588 views 20 11
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