hello, you can use something like
SELECT c.contentid, c.contenttype, c.title
FROM CONTENT c
JOIN SPACES s
ON c.spaceid = s.spaceid
WHERE c.prevver IS NULL and s.spacename = 'your space name'
I don't have access to db atm, but believe it should work
"c.prevver is NULL" is used to get only actual versions of pages, also it should get you all contenttype, so you can add condition for it yourself
You should also filter on CONTENT_STATUS to not get deleted page. Also, if you've set up your Confluence database according to their best practices then it might also be case sensitive collation. So, you would need to do something like this.
SELECT C.CONTENTID, C.CONTENTTYPE, C.TITLE
FROM CONTENT C
INNER JOIN SPACES S ON C.SPACEID = S.SPACEID
WHERE C.PREVVER IS NULL and C.CONTENT_STATUS= 'current' and C.CONTENTTYPE = 'PAGE' and S.SPACENAME = 'your space name'
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event