Forums

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

Add a username dynamically inline?

Josh Liebster (iland)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 2, 2022

Is there a way in Cloud to insert a username (or other configurable parameter) inline with text?

Example: There are instructions to create a folder and put something in it, so the instructions would read something like:

Please create a folder in the root directory. Use the command

mkdir [USERNAME]-test

When done, please remove the directory by using the command

rm -rf [USERNAME]-test

With [USERNAME] being the username of whoever is logged in. This will enable easier copy and paste for longer strings.

Is this possible? The User Profile macro is not what I am looking for, unless you can pull username from it with some extra arguments.

1 answer

1 vote
Pramodh M
Community Champion
February 2, 2022

Hi @Josh Liebster (iland) 

Welcome to the Community!!

We need a plugin here

This plugin allows us to place dynamic content on the page

https://marketplace.atlassian.com/apps/1211860/confiforms-data-forms-workflows?hosting=server&tab=overview

Another way is to build a forge App in order to place the dynamic contents

Here's a quick start guide

https://developer.atlassian.com/cloud/confluence/modules/dynamic-content-macro

Let me know if you have any doubts

Thanks,
Pramodh

Alex Medved _ConfiForms_
Community Champion
February 2, 2022

Hi @Josh Liebster (iland)

While ConfiForms could easily help you here you need to be aware that the usernames in the cloud (as your question is tagged with) are the long hashes... not the usernames you are used to have on server/dc

So it's gonna be something like

mkdir aaa-bbbb-cccc-dddd-eee-test

@Pramodh M thanks for mentioning!

Alex

Josh Liebster (iland)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2022

Thank you both. I will look into it/them.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events