The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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 Champions.
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

Comments for this post are closed

Community moderators have prevented the ability to post new 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 Champions.
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 Champion
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.

 

TAGS
AUG Leaders

Atlassian Community Events