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: 

Add rows with data to existing page/table in confluence

Maxime GUITTET
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Thomas Deiler
Community Champion
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 Champion
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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events