How do I retrieve changes to a page

Jordan Hauser April 12, 2022

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
DJ April 12, 2022

Hi @Jordan Hauser 

This API should also let you grab the storage format:

 

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


Cheers,

DJ

Jordan Hauser April 12, 2022

@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?

Jordan Hauser April 12, 2022

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
AUG Leaders

Atlassian Community Events