Error while deleting confluence page using scriptrunner

Dar Kronenblum
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.
April 30, 2018

Hi,

I'm trying to delete page in confluence using REST endpoint 

I'm using this function :

pageManager.trashPage(page)

but for some reason I'm getting this error on the parent page:

net.sf.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) for com.atlassian.confluence.pages.Page instance with identifier: [parent page id]

 

any idea how to fix this,

thanks

Dar

2 answers

1 accepted

0 votes
Answer accepted
Dar Kronenblum
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.
May 3, 2018

found the problem- there was some edit to the parent page that cause this issue

Ahmed Zeb
Contributor
March 30, 2019

Hi @Dar Kronenblum

Could you please help provide me with the page deletion script?

0 votes
Stephen Cheesley _Adaptavist_
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.
May 3, 2018

Would it be possible to see the entire script?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events