Forums

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

How do we get the attachments on a Confluence Page only for the latest version via the Python API?

Rushabh Kela
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 18, 2025

I see that the Confluence class has a `get_attachments_from_content` method but that seems to return all the versions of the attachment. 

For example, if I add an image A in a page P (v1) and I edit P (v2). The next call to `get_attachments_from_content` returns me 2 objects of A, not sure why. The latest version of A just has 1 image.

 

1 answer

Rushabh Kela
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 19, 2025

Hi @Fabio Racobaldo _Herzum_ 

Thanks for your reply. I was looking for an API in the Python version. The reference provided is for the Java API.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events