Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: To hide or securely encrypt your Confluence data, we recommend using Visibility or Security & Encryption apps.

Result

...

Recipe

Apps

Reporting for Confluence Server & Data Center

Level

Easy

Estimated time

15 Minutes

Macros

Report Block, User Group Reporter, Text Filter, Report Body, Report Empty

Suppliers

Global Supplier, User-group Supplier

Storage format

You can copy and paste this code into the Confluence Source Editor:

...

You can recreate the example in the editor view:

Image Added

Steps

  1. Add a Report Block Macro

  2. Inside the macro, add the User Group Reporter, Report Body, and Report Empty macro.

  3. In the User Group Reporter macro, add two Text Filter macro and set the following:

    1. First Text Filter macro

      1. Key = user-group:members

      2. Required = Enabled

      3. Contains Value = %global:current user%

    2. Second Text Filter macro

      1. Key = user-group:name

      2. Required = Enabled

      3. Contains Value = confluence-users
        Set the group(s) that are allowed to view the content in this field.

  4. For the Report Body macro, insert the content you want to show to the group(s).

  5. In the Report Empty macro, add content you want the non-members of the group to view. This is optional.

...