Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Python/jinja template rendering and Confluence API

Nahi
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!
Sep 28, 2023

I'm working with the Confluence API using Python. Here's my workflow:

  1. Fetch the content of a page using get_page_by_id().
  2. Transform the content.
  3. Present the transformed content to the user via a web app using Jinja for them to approve or disapprove.

I'd like the content displayed in the web app to match the style it will have when uploaded back to Confluence. The challenge I'm facing is in rendering the content in the HTML template to ensure it looks consistent with the Confluence style.

When the user approves the content, I will be uploading it back to Confluence using the Python API. It's important that what the user views in the web app mostly matches what they will see in their Confluence space.

How can I render the transformed content in my web app to match the Confluence style, ensuring consistency between the preview and the uploaded content?

1 answer

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 02, 2023

Welcome to the Atlassian Community!

Your python code will need to replicate all the stuff Confluence does to render its pages - this is quite a lot of coding for you to do.

I would question the desire to do this as well.  Why are your users not approving the pages in Confluence directly?  What's the point in using yet another application to doit? Why are you not just using something like Comala workflows?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events