The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Lucas 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

 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events