You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I'm currently monitoring Confluence activity via the rest API. I am able to collect dates, users, and page ids of all activity with a specific date range. In addition to this, I need to pull the changes made to a page related to that activity.
Current I'm able to pull both the HTML of the new version as a result of the change and the HTML of the previous version via the below API call.
rest/api/content/search?expand=body.view,history.previousVersion.content.body.view&start=0&limit=25&cql=<dateRangeCQL>
Using this information, I could design a Python script using difflib that could decipher the differences in the HTML, but this is too computationally expensive to run on many large confluence pages.
On the Confluence web application, there's a page to view the difference between two versions via this link: pages/diffpagesbyversion.action. This page highlights the additions and reductions in the page.
Given that this information is available via the web application, I was wondering if there was an API call to pull just the difference between two versions?
Hi @Jack_Moore ,
unfortunately there's not a specific REST API to retrieve that information. You can retrieve specific content version and then compare json (https://community.atlassian.com/t5/Confluence-questions/Confluence-API-get-page-content-from-historical-versions/qaq-p/1398857)
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.