Hi!
I am using an event listener for listening when a page is deleted, the event class is:
com.atlassian.confluence.event.events.content.page.PageTrashedEvent
It works fine, nevertheless, content properties of the page seem to be already gone when the method is fired, is there an alternative to this issue? thanks in advance for your help.
Hi David,
If your listener can provide you with the Page/Content ID, you should be able to run an API Call to check the Trash and reference the ID to what's in it:
INSTANCE/rest/api/content?status=trashed&expand=body.storage
This will list out all 'trashed' pages that you have Space Admin permissions in. If you happen to know the particular Space the trashed page belonged in, include a:
&spaceKey=KEY
to filter it down.
Cheers,
Shawn
Hi Shwan I do not have issues obtaining the content but properties:
https://developer.atlassian.com/server/confluence/content-properties-in-the-rest-api/
they are gone when the listener fires.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.