I have a master page and a child page.
In the master page I have a page property macro with several properties.
In the child page I want to copy a specific property.
I have found that there is an API call like this:
/rest/masterdetail/1.0/detailssummary/lines?cql=id=25807045&spaceKey=XXXX&headings=Conclusie&pageIndex=0"
When called in the browser I get the correct result, namely the value of the property "Conclusie".
I'm struggling to use this in a user macro.
This is what I have sofar:
## @noparams
<script type="text/javascript">
AJS.$.ajax({
url: "/rest/masterdetail/1.0/detailssummary/lines?cql=id=25807045&spaceKey=XXXX&headings=Conclusie&pageIndex=0",
contentType: 'application/json',
type: "GET",
success: function(msg){
alert(msg);
}
</script>
I get a rendering error.
Error occurred rendering template content
Would appreciate any hints or suggestions.
TIA