Add rows with data to existing page/table in confluence

Maxime GUITTET April 28, 2021

Hi,

 

I have a page on confluence which mostly contains only a table with rows. Each row is relative to a certain product update, and gives the following (example):

 

```

| Date              | Name                 | Description                               |

|-------------------|----------------------|-------------------------------------------|

| 2021-04-14 | Saint Maxime  | An awesome day of course! |

| 2021-04-01 | April Fool         | Lorem ips... just kidding.        |

|-------------------|----------------------|-------------------------------------------|

```

 

And so, I would like to be able to update this page by adding a row to this existing table at the top :) The thing is, I am currently reading your documentation and I am not sure to fully understand how can I achieve such action?

 

Thanks, 

 

Max

1 answer

1 vote
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 28, 2021

Dear @Maxime GUITTET ,

welcome to the community!

You could do with the REST API and write a script around that does following

  1. Read (REST) the page with the table
  2. Manipulate the body information by inserting a row on top
  3. Update (REST) the page with the new body.

You could then call the script for example with:

script 2021-05-01 "Alice and Bob" "The cat is dead"

You could even hide the script behind a webserver so that you could call it with:

https://host.com/script?date=2021-05-01&name=Alice+and+Bob&text=The+cat+is+dead

I recommend PHP for this - its very simple.

So long

Thomas

Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 10, 2021

Dear @Maxime GUITTET ,

was my answer useful? Then I would be happy when you click on the "green accept answer" button.

So long
Thomas

Suggest an answer

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

Atlassian Community Events