How can I create a "bad word" report in Confluence?

Richard_Isaacks July 8, 2016

I need to create a daily report of usage that scans all text in the entire system for "bad words" from a "bad word" list.  This would be used by an internal group to ensure compliance.  It would also need to have a quick link to the affected page so that it can be removed by an administrator.

3 answers

1 vote
Stephen Deutsch
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.
July 10, 2016

The easiest way to do this is to have a page with a bunch of "Search Results" macros, one for each "bad word". This will update automatically as new pages are indexed and includes links to the page (even if not directly to the word, but you can use CTRL+F on the page to go directly to the word quite easily smile).

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
July 11, 2016

If you think that all your bad words will be indexed correctly by Confluence so that search will work, then construct a CQL statement that will look for any content that has those words. Then put that CQL in a getContentList action from Confluence Command Line Interface (CLI) and run that daily using your favorite job scheduler. If you want the report available in Confluence, attach the resulting file to a page using addAttachment and view using the CSV Macro

If Confluence search (ie CQL) doesn't do a good enough job for your use case, there will soon be another alternative available for searching in a similar manner.

0 votes
Adrien Ragot 2
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.
July 11, 2016

The tailored technical solution would be to create a plugin. It requires a basic knowledge of how to develop add-ons for Confluence: Listen to the PageUpdateEvent and email someone when that happens - and that would take 1-2 days programming. The long part in all plugins is always to make them configurable: Who it should email, where we configure the add-on, what if we can't send emails that day, how to deactivate the report for some pages, in case of emails then can the recipient stop the flood and how to align those emails with the Confluence design, etc. - and that could take 10 other days...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events