Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Rest call after update page event returns previous page not the update.

laralg
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 8, 2020

Hello,

I have a listener that captures when a page is confluence is updated and copies the whole content somewhere else.

But in my last test, when the event runs the script instead of sending the new information it sends how the pages was previous the update.

I am getting the content from the confluence page via rest with:

HttpResponseDecorator responseserver = (HttpResponseDecorator) clientserver.get(
path: "/rest/api/content/99976066",
contentType: ContentType.JSON,
query : [expand:'body.storage'],

I imagine that what happens is that I capture the info of the page before being update, but I do not know how to modify the rest call to capture the page after the update.

 

Any help?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events