Folder ID for CQL

Rhys Gottwald
Contributor
January 9, 2025

I know that I can use that I can use CQL to find if a page is any sort of child of a page using CQL and 

ancestor in (pageId)

But how do I do this with a Folder, where can I get the folders ID?

1 answer

1 accepted

0 votes
Answer accepted
Łukasz Modzelewski _Lumo_
Atlassian Partner
January 9, 2025

You can click on 3 dots on folder, then copy the link and from that link extract the folder id

copy folder link.png

It will be the number after folder at the end of the url: .../folder/<ID>

in you browser you can also verify it with this endpoint: .../wiki/api/v2/folders/<ID>

For more info about this endpoint check: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-folder/#api-folders-id-get

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events