Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence Hide Macro

Hi All,

 

I have seen the macro's self-referenced documentation: https://bobswift.atlassian.net/wiki/display/RUN/Hide+Macro

I want to use the macro to hide content from all but a few individuals. I tried using

literal = false
showif = myname:$user

but the content stays hidden.

Please provide a reference to examples hiding or showing content based on user identity.

 

 

Many Thanks!

Akash

2 answers

The Hide macro works with regex matching and you are not going to get a match of myname with $user as both are text values unless you have this included in a run macro where user is one of your user defined variables. 

Milo's answer is appropriate if you are just changing view of content based on users and groups.

Bob Swift, i would like to ask if some Regex examples of what to put directly into the Hide Macro.  I am using very very basic regex and it is not working

 

I want to hide unless  the current user id on the form is one of several

showif = $current_user_id:csweet|srinehart|wknapp

I have also tried

showif = $current_user_id:(csweet|srinehart|wknapp)

 

neither have worked

 

only csweet is shown the panel if i have it as 

showif = $current_user_id:csweet

or

showif = $current_user_id:cweet:srinehart:wknapp

You could try the Visibility macro from ServiceRocket. It works for me.

Suggest an answer

Log in or Sign up to
This widget could not be displayed.
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

690 views 5 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you