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

Is there anyway or predefined variable to get position value in confluence?

SKR January 8, 2014

Hi,

Is there anyway or predefined variable to get position value in user macro?

Because I want to display pages based on user levels

ex: if the user level is administrator then he will be able to access all the sections,

if the user level is manager then he/she will have access for manager area

Please do let me know if you have any similar example.

Regards

Sudarshan

3 answers

0 votes
SKR January 9, 2014

Hi Matthew,

I have created a custom HTML menu in my wiki pages using user macro, but now I would like use conditions to display some of them which is some thing based on their designation. However here I found that position will be consider as designation and I would like to pull the value of that through predefined variable.

eg:

if(position == 'manager'){

<li><a href="manager">Manager</a></li>

}else if(position == 'teamlead'){

<li><a href="teamlead">Team Lead</a></li>

}else{

<li><a href="menu1">menu1</a></li>

<li><a href="menu2">Menu2</a></li>

}

To achieve similar to above example I need the value of that position which will be pulled from confluence database Table.

Please find attached screenshot below

Regards

Sudarshan

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 8, 2014

Are you aware of the Visibility plugin from ServiceRocket?

0 votes
Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 8, 2014

I'm not sure I understand your use of the terms "position value" and "manager area" and "sections". Can you please provide more details about what you mean by these?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events