Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SQL Query for Space page structure

eric brown May 26, 2014

How do I query the confluence database to pull back all the pages for a particular space?

1 answer

0 votes
FelipeA
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.
May 27, 2014

Hi Eric,

Just replace the <spacename> below with the name of the particular space you want:

SELECT contentid,title 
FROM content 
WHERE prevver IS NULL 
AND content_status='current' 
AND spaceid=(SELECT spaceid FROM spaces WHERE spacename='&lt;spacename&gt;');

Best regards,

Felipe Alencastro

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events