The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How do I import a code from unix to build a confluence page ?

varun parmar
June 14, 2023

Hi,

I want to display some data in a hierarchical reference format in confluence. To elaborate on hierarchical reference i mean user should be able to follow through by selecting a section which then expands the references beneath. Also knows as progressive disclosures tabs sometimes. Maybe expand macro is the one which I need if i can nest it further.

A quick example :

> Module_A

> Module_B

> Module_C

 

Module_A when expanded can display whats underneath  :

>Module_A1

>Module_A2 ...

 

Module_A1 when expanded can have more information underneath : 

>Module_A1_a1

>Module_A1_a2

Module_A2 when expanded can have more information underneath : 

>Module_A2_a1

>Module_A2_a2

 

Similarly Module_B and Module_C can have such information too.

 

So I want to know whether I can put in some format that is needed by confluence to display above data . I can generate on the unix side using python or perl or whatever language I find comfortable with.

So I want to know whether this is doable or not ?

I found code block macro as well which i thought can be used but it looks like its just for displaying bare code in confluence. It does not translate to a specific data format I need. Correct me if i am wrong.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Brant Schroeder
Community Champion
October 1, 2023

@varun parmar you would need to use the Conflunce API to create the pages and the hierarchy. 

TAGS
AUG Leaders

Atlassian Community Events