Forums

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

How to get all comments list in confluence via SQL queries

Lakshman
Contributor
February 27, 2019

How to get all comments list in confluence via SQL queries

1 answer

1 accepted

2 votes
Answer accepted
Davin Studer
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.
February 27, 2019

This should get you the comments from the database.

select *
from [CONTENT] C
inner join [BODYCONTENT] B on C.CONTENTID = B.CONTENTID
where
    C.CONTENTTYPE='COMMENT'
    and PREVVER is null
    and CONTENT_STATUS = 'current'
Lakshman
Contributor
March 1, 2019

Thanks for your query it woks!!!

Like Zak Laughton likes this
Davin Studer
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.
March 1, 2019

Glad to help! Please make sure to mark the question as answered. Thanks.

Like Zak Laughton likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events