Hi,
I would like to have a usermacro, taking the name of the page and constructing a sql statement that I could pass to the sql macro.
The outline is :
#set ($query = "select field1, field2 from somtable where field1 ="+$content.getTitle())
<ac:structured-macro ac:macro-id="f9f4ee50-2e49-463a-8ab5-79cd170f1450" ac:name="sql-query" ac:schema-version="1">
<ac:parameter ac:name="dataSource">mysource</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:parameter ac:name="table">false</ac:parameter>
<ac:plain-text-body><![CDATA[$query]]></ac:plain-text-body>
</ac:structured-macro>
How do I substitue my $query in the macro ?
Thank you
Christophe