Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Add rows with data to existing page/table in confluence

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

0 votes
Thomas Deiler Community Leader Apr 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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

🥓🙅🏻‍♀️ Meet-less May Badge!

Hello Confluence Community!  What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. We la...

195 views 2 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you