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,295,755
Community Members
 
Community Events
165
Community Groups

Is there any way to update the comment of an old version of the attachment of a confluence page

I want to find a way to update the comment of a old version attachment of a confluence page. I've tried the rest api /rest/api/content/{id}/child/attachment/{attachmentId}, but it seems that this rest api can only update the comment of the latest version of the attachment of a confluence page. If I tried to update old version one, the confluence log will throw an exception: 

java.lang.IllegalArgumentException: The attachment to be moved must be the latest version.
at com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao.moveAttachment(AbstractHibernateAttachmentDao.java:392)
at com.atlassian.confluence.pages.attachments.CachingAttachmentDao.moveAttachment(CachingAttachmentDao.java:208)
at com.atlassian.confluence.pages.DefaultAttachmentManager.moveAttachment(DefaultAttachmentManager.java:408)
at com.atlassian.confluence.pages.DefaultAttachmentManager.moveAttachment(DefaultAttachmentManager.java:419)
at com.atlassian.confluence.pages.DelegatorAttachmentManager.moveAttachment(DelegatorAttachmentManager.java:181)
at com.atlassian.confluence.pages.CachingAttachmentManager.moveAttachment(CachingAttachmentManager.java:143)

1 answer

Hi, Were you able to find a solution for 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 . 🙋‍♀️ ...

953 views 15 27
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