Fix incoming links for pages with pictures

I'm using the user macro below to list all incoming links to my page. The filters can be ignored basically. The macro works correct unless a picture is added to the page itself. The page will appear in the list of incoming links. This is an obvious bug to me and should be fixed.

I tried to use a workaround by adding a filter for the current page but I wasn't able to make it work (tried to use variables here).

I hope the script below helps to reproduce the issue very quickly. In case it doesn't please get back to me.

<ac:structured-macro ac:macro-id="042e87ad-615d-44fb-a2c1-c7992e946b62" ac:name="report-list" ac:schema-version="1">
<ac:rich-text-body>
<p class="auto-cursor-target">
<br/>
</p>
<ac:structured-macro ac:macro-id="a4046d44-667b-41fb-9fac-3c3243bbc519" ac:name="local-reporter" ac:schema-version="1">
<ac:parameter ac:name="">page:incoming links</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="de306ab6-2892-4dab-b7b1-00f9a1d575cf" ac:name="boolean-filter" ac:schema-version="1">
<ac:parameter ac:name="value">true</ac:parameter>
<ac:parameter ac:name="">link:destination &gt; page:is latest version</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="53910fd6-5afc-4545-aebe-627eaedbfeb9" ac:name="content-filter" ac:schema-version="1">
<ac:parameter ac:name="label">qm-process, qm-procedure</ac:parameter>
<ac:parameter ac:name="space">
<ri:space ri:space-key="@all"/>
</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p class="auto-cursor-target">
<br/>
</p>
<ac:structured-macro ac:macro-id="3a014625-8424-4f5a-bb47-6ae20611796a" ac:name="report-body" ac:schema-version="1">
<ac:rich-text-body>
<p class="auto-cursor-target">
<br/>
</p>
<ac:structured-macro ac:macro-id="acf94083-5c19-4ee5-b2b2-b6014cc01523" ac:name="report-link" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:parameter ac:name="">link:url</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="955d6656-6a7b-482c-b27f-411517726d42" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="">link:body</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p class="auto-cursor-target">
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p class="auto-cursor-target">
<br/>
</p>
<ac:structured-macro ac:macro-id="d62f9150-657a-4bde-8003-f804609ad39b" ac:name="report-empty" ac:schema-version="1">
<ac:rich-text-body>
<p>
<em>Not used in any other process or procedure.</em>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p class="auto-cursor-target">
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
  • Guest
  • Jun 7 2019
  • Needs review
  • Attach files