Import csv content into a page using page template

Any advice on whether there's a way on importing csv content into a page with page templates.

In the page template, there are labels. . . can I match up the csv data to the labels and import them into pages in a space automatically?

Thanks in advance for your help!

2 answers

1 accepted

This widget could not be displayed.
Don't fully understand your question, but you can use the csv macro from the table plugin to display csv data.

Hi Bob,

I would like to automate the creation of pages in a space by using the Add Page from Template.

Here's my made up example:

1) I have a Page Template as follows. . .

h1. Just a test


| Test Summary | @Summary|textarea(5)@ |
| Test Description | @Desc|textarea(10)@ |

2) I have a csv file containing 100 rows of 'Test Summary' and 'Test Description'

3) Is there an automatic way to create 100 pages (like Add Page from Template) and importing the data in the csv into those pages.

Thanks!

Depends on whether this is a one time thing or you need a UI to do it.

  1. Confluence Command Line Interface can be used to automate creation of pages using addPage. runFromCsv can be used to do this based on a CSV file.
  2. If you need something that can be driven from a UI perspective, then this can help: Confluence CLI Plugin

I'll have to give that a try - thanks for the tip!

This widget could not be displayed.

delete text

Sorry, this was suppose to be a comment. Now I can't delete it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

280 views 2 4
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