Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,254,216
Community Members
 
Community Events
164
Community Groups

View Page Source of a Version of the Page

Hi

I have been using the Confluence API to view the source code of a page

<confluence-url>/plugins/viewsource/viewpagesrc.action?pageId=<pageId>

What I need is to view a version of that page.  I was hoping that

<confluence-url>/plugins/viewsource/viewpagesrc.action?pageId=<pageId>&pageVersion=70

This only showed the source of the latest page and not the version 70

I tried through confluence and selecting page history and clicking version

https://myesure.atlassian.net/wiki/pages/viewpage.action?pageId=2681897831&pageVersion=70

And from the options selected "View Source".  Choosing that option show the correct source

????

Does anyone know of a method to do this?

Rob

 

2 answers

I know this is a bit old, but was looking for similar. I think if you use

<confluence-url>/plugins/viewsource/viewpagesrc.action?pageId=<pageId>

with the version ID where the pageID should go, it may work.

How I arrived at this:
When in the version you want, right-click the 'View source' link and 'Copy link address'

0 votes
Shannon S Atlassian Team Apr 30, 2021

Hello Rob,

Thank you for raising this on Atlassian Community! I found a thread from earlier last year that might help you:

Take a look and see if the suggestions work for you. If you still have trouble, I recommend using our Atlassian Developer Community instead. The folks there are more familiar with the REST-API and developing for Atlassian Products, so they may be able to help you.

Take care,

Shannon

Suggest an answer

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

Presenter Mode for Confluence is here 🖥 👩‍💻

👋  Hello Community!  My name is Stephanie Zhang, and I’m a product manager on the Confluence cloud team. Today, I’m excited to announce the rollout of  Presenter Mode : a ...

1,984 views 18 39
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