Part 2 - Creating the workaround

In this section, you will be creating the workaround to the Incoming Links macro by making use of Reporting for Confluence.

This workaround will be able to detect links from other pages from within Scaffolding macros that link to the current page. In this example the Scaffolding macro structure used is the one we created in Part 1 - Creating the Scaffolding macro structure.

At the end of this step you should be able to see something like this:

Source code

The following source code is shared using Confluence Storage Format, the XHTML-based format that Confluence uses to store the content of pages, page templates, blueprints, blog posts and comments.

For more information on how to use this source code on your Confluence, read the following article:

⚙️ Expand


  1. Add a Report Block macro.
    Check its Injected parameter.
    Create a Local Reporter macro and set the Key parameter to "@self".

  2. Add a Report Header macro.

  3. Within the Report Header macro, create a Report Variable macro.
    Set its Name parameter to "X" and Value parameter to "%page:title%".

  4. Add a Report Body macro.

  5. Within the Report Body macro, add a Report Block macro.
    Check its Injected parameter.

  6. Within the Report Block macro, add a Content Reporter and a Report Body macro.
    Set Content Reporter's type parameter to "Page" and check the Report Body's Injected parameter.

  7. Within the Report Body macro, add a Report info macro.
    Set its Key to "page:title" and check the Link To Item parameter.

  8. Inside Content Reporter macro, add a Text Filter macro
    Set its key and contains parameters to "data:target" and "%variable:X%" respectively and click Save.

  9. Click on Edit contents, select your desired page and click Save.

Macro structure

approve YOU'RE DONE