Get last change from attachment in Confluence

Joel Suter April 11, 2018

I am trying to get the date when an attachment was uploaded or was replaced/changed with the Confluence Java API. I am doing it with Attachment.getLastModificationDate() but it gives me the wrong date, even though I am deleting and re uploading the attachment. 

I am writing a Confluence plugin.

Thanks for the help.

1 answer

0 votes
NotTheRealStephenSifersNOPENOPENOPENOPE
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 13, 2018

When making the initial API call, are you checking the available versions then calling for the Modification date of most recent version?

Do you have an example of the call you are making?

Joel Suter April 24, 2018

yes I am checking each version that was uploaded, and the modification date is only from the initial upload of that version, not when it was deleted. I am trying to get the date when an attachment was deleted but there's no getDeletionDate only getModificationDate and that is not returning the deletion date. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events