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.
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 ).
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.