Hello current logged in user

Quite simply I would like to create content that has structure around the current logged in user. I have not found anything yet that allows me to utilize such data. I thought I could use {user-info:FullName} and {user-info:Email} but presents my information (page creator?) and not the current user viewing the page.

As the page is written I would like to present two things to the user in a greeting to start with.

Hello {logged in user},

Welcome to the marketing team, your email address is {logged in users email address}

Where this would present to the user as

Hello Bob Smith,

Welcome to the marketing team, your email address is bob.smith@example.com

I may have other uses for this but this is the simplist fashion in which it could be used.

1 answer

1 accepted

Reporting plugin (https://plugins.atlassian.com/plugin/details/186) has user information. Also, the Run Plugin has pre-defined variables including those you listed.

I went with Run Plugin as it had the variables predefined and I may find other uses for it.

The way I ended up implementing this was a wiki html form posting to SalesForce and it works perfectly. Below is a format example of how I implemented it.

THANKS!

Hello, {run-now}$current_user_name

Please use this form to submit your request. This will create a case in SalesForce
{html}
<form action="https://www.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8" method="POST">
<label for="name">Name:&nbsp;&nbsp;</label><input id="name" maxlength="80" name="name" size="20" type="text" value={html}$current_user_name{html} readonly style="border: 0"/><br>
<label for="email">Email:&nbsp;&nbsp;</label><input id="email" maxlength="80" name="email" size="20" type="text" value={html}$current_user_email{html} readonly style="border: 0"/><br>
<input type="submit" name="submit">
</form>
{html}
{run-now}

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...

2,852 views 27 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