How to find all the pages in confluence dc which contain specific weblinks

Mayuresh Kamble
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.
April 1, 2024

Hello Community,

I need a list of pages from my confluence DC instance where weblinks are embeded starting with specific text. Tried the db query from this article but it isn't returning anything. Any help would be appreciated.

Thanks,
Mayuresh

2 answers

0 votes
Radek Dostál
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.
April 2, 2024

Those SQL queries should return something. Maybe used a wrong parameter?

As in..

like '%example.org%'

Where 'like' is case-sensitive; % is an "anything" wild card. The content column itself is a bunch of markup with the text nested somewhere in the middle so you do need both starting and ending %.

 

You can also try 'ilike' for case-insensitive search, and if not supported by your db use "lower" function to workaround it:

where LOWER(b.body) like '%example.org%'

 

Otherwise, nothing means nothing. If you do see a page containing a link then paste the source format / screenshot / something from that page for us to see and the SQL query you used, there's got to be some discrepancy somewhere.

0 votes
Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 2, 2024

Hello @Mayuresh Kamble 

Back in my Server days, I used a search and replace app from the marketplace for that very purpose and it worked like a charm.

Can't remember the name now, it's been 3 years now but chances are that you'll find it or a similar app in the marketplace today for a DC setup.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events