Part 2 - Creating the workaround
Overview
Create the workaround to the Incoming Links macro by making use of the Reporting for Confluence app.
This workaround is 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 the following outcome (or similar).
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 - How do I use Recipes that use the Storage Format with the Confluence Source Editor?
Steps
add a Report Block macro.
check its Injected parameter
create a Local Reporter macro
set the Key parameter to "@self"
add a Report Header macro
Within the Report Header macro
create a Report Variable macro
set the Name parameter to "X"
set the Value parameter to "
%page:title%"
add a Report Body macro
Within the Report Body macro
add a Report Block macro
check its Injected parameter
Within the Report Block macro
add a Content Reporter and a Report Body macro
set Content Reporter type parameter to "Page"
check the Report Body Injected parameter
Within the Report Body macro
add a Report info macro
set its Key to "
page:title
"check the Link To Item parameter
Inside Content Reporter macro
add a Text Filter macro
set its key and contains parameters to "
data:targe
t" and "%variable:X%
" respectively
choose Save
On the page
choose Edit contents
select your desired page
choose Save
Workaround is complete and added to your page.
Macro structure
Â