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

what table maps pageids with space in confluence?

chintu Parameshwar August 23, 2015

hi,

I want to query pageids of all the pages in a space. Could you please let me know which table stores this info?

Thanks in advance!

 

Chintu

 

1 answer

1 accepted

1 vote
Answer accepted
Betsy Walker {Appfire}
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.
August 23, 2015

You would need to join the content table on the spaces table, based on the spaceid in both columns, something like this:

SELECT title, contentid 
FROM content 
WHERE spaceid = 
    (SELECT spaceid FROM spaces WHERE spacekey = 'yourspacename') 
ORDER BY 1;

or

SELECT C.title, C.contentid
FROM content C
INNER JOIN spaces S ON C.spaceid = S.spaceid
ORDER BY title;

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events