Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Report from a specific page where the page name is stored in a scaffolding variable

Marcel Elfring
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 2018

Hello,

I can't get this to work, hopefully anyone can help.

I created a page on which I want the user to be able to select another page (based on it's title). After that I want to report some information from that other page on my page. I thought that this would be possible by using a content reporter in combination with a text filter macro that filters on basis of the page title. However, it seems that the textfilter does not work with a variable?

This what i've done:

I have a variable pc_pcselect on my page that stores the title of anoth er page:2018-07-07_1439.png

<ac:structured-macro ac:macro-id="60b6b08a-0129-4fde-9c78-e177df05651d" ac:name="list-data" ac:schema-version="1">
<ac:parameter ac:name="name">pc_pcselect</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="d7589813-4b5b-494f-8941-1efa72c139e9" ac:name="content-options" ac:schema-version="1">
<ac:parameter ac:name="parent">Projecalculaties actueel</ac:parameter>
<ac:parameter ac:name="labels">projectcalculatie</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p></ac:rich-text-body>
</ac:structured-macro>

This enables the use to select a specific page on which project information is stored using scaffolding data.

Now further on my page  I've created the report. For testing I've first created it without any text filter. This works fine, all the pages are returned:

2.pngBut, when I add the text filter, no page is returned:

3.png

<ac:structured-macro ac:macro-id="9fc832b2-cd44-4f96-a03a-db31209a7fa1" ac:name="text-filter" ac:schema-version="1">
<ac:parameter ac:name="value">%data:pc_pcselect%</ac:parameter>
<ac:parameter ac:name="">page:title</ac:parameter>
</ac:structured-macro>

 Why is this not working? Is there another way to achieve this?

Thanks in advance!

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events