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,294,801
Community Members
 
Community Events
165
Community Groups

How do I retrieve changes to a page

Hi community,

So I have a webhook set up from confluence that fires on page update. Our Jira instance picks up on this payload from a custom endpoint. I use the authenticatedRequestFactory to do a GET request on that page to return values from a table on that page.

It appears to be grabbing the underlying page without the changes, and I need the page with the changes applied. Is there a different API I could use for this other than whats pictured in the attachment?

-JordanWeb capture_12-4-2022_11022_jira.wilcoxind.com.jpeg

1 answer

1 accepted

1 vote
Answer accepted

Hi @Jordan Hauser 

This API should also let you grab the storage format:

 

/rest/api/content/60653595?expand=body.storage


Cheers,

DJ

@DJ Thank you for the quick response.

Unfortunately this is still resulting in the old data after changing my request to use that other endpoint.

I need the page after the data has been updated and the listener is sending the data from before the page is updated. Can I specify some time delay to offset when it reads the page to get this to work?

Accepting the answer to close this - 

The actual solution was to just add some amount of time to wait for confluence to actually post the update, then have the code run. I just added a .5 second wait time

Like DJ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

833 views 10 23
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