Dapplo.Confluence icon indicating copy to clipboard operation
Dapplo.Confluence copied to clipboard

Attachment Result Limit 50

Open cao-bing opened this issue 2 years ago • 2 comments

I want to get all attachments from confluence by the following code. But I just only get max 50 attachments from the result. How can I get all attachments?

var attachments = confluenceClient.Attachment.GetAttachmentsAsync(contentDigest);

cao-bing avatar Feb 10 '23 17:02 cao-bing

Hi,

there is currently no way. This project is extended on a need basis, so far nobody needed this yet.

I will try extend the GetAttachmentsAsync method with paging support, filename and type filtering, as is documented in the confluence API documentation: https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-get

Lakritzator avatar Feb 16 '23 14:02 Lakritzator

Just out of curiosity, can you explain your use-case, like why would content have more than 50 attachments?

Lakritzator avatar Feb 16 '23 14:02 Lakritzator