Rendering "Page properties report" macro

531 views
Skip to first unread message

Юрий Клещенок

unread,
May 24, 2015, 1:22:24 PM5/24/15
to atlassian-...@googlegroups.com
Hello, guys!
Look's like "/rest/api/contentbody/convert/view" cant render "Page properties report" macro! Return this: "The page properties report macro must be used within a space."

Dave Haden

unread,
Jun 3, 2015, 4:09:07 AM6/3/15
to atlassian-...@googlegroups.com
Hey :)

Would you be able to provide example data of what you are sending in the POST request?
Otherwise you can look at this page for references if you have not seen this already.

Thanks
Dave

Yuri Kleshchenok

unread,
Jul 30, 2015, 5:05:18 AM7/30/15
to Atlassian Connect Dev, dha...@atlassian.com
Hey, Dave!
Thank you very much! Your link was usefull as hell. problem solved for me.

Yuri Kleshchenok

unread,
Jan 31, 2016, 11:47:19 AM1/31/16
to Atlassian Connect Dev
hmm have problem here, again:
run-command: 
atlas-run-standalone --container tomcat7x --product confluence --version 6.0.0-OD-2016.03.1-0006 --data-version 6.0.0-OD-2016.03.1-0006 --bundled-plugins com.atlassian.bundles:json-schema-validator-atlassian-bundle:1.0.4,com.atlassian.upm:atlassian-universal-plugin-manager-plugin:2.20.1-D20150924T170115,com.atlassian.jwt:jwt-plugin:1.5.4,com.atlassian.plugins:atlassian-connect-plugin:1.1.68 --jvmargs -Datlassian.upm.on.demand=true
trying render Page Properties report macro by /rest/api/contentbody/convert/view, and get this:
<div class="table-wrap conf-macro output-block" data-hasbody="false" data-macro-name="detailssummary"><table class="aui metadata-summary-macro null" data-cql="label = &quot;reportnao&quot; and space = currentSpace()" data-first-column-heading="Title" data-count-comments="false" data-count-likes="false" data-total-pages="1" data-page-size="30" data-sort-by="null" data-reverse-sort="false" data-blueprint-present="false"><caption>Generating page properties report...</caption><thead> </thead><tbody> </tbody></table></div>
So, no body here.
Request params:
request({
 url: "/rest/api/contentbody/convert/view",
 type: 'POST',
 data: JSON.stringify({
  value: myMacroBody, // macro body by /rest/api/content/{{pageId}}/history/{{pageVersion}}/macro/id/{{myMacroId}}
  content: {
   id: '{{pageId}}' //
  },
  representation: "storage"
 }),
 contentType: 'application/json',
 success: function(response) {
  console.log(JSON.parse(response).value);
 }
});
Any way to get PPR body from my macro? Or just to get the access to 'rest/masterdetail/1.0/detailssummary/lines'?

Yuri Kleshchenok

unread,
Feb 1, 2016, 3:16:37 AM2/1/16
to Atlassian Connect Dev
Problem was here: 
/rest/api/contentbody/convert/view
change to export_view - save my life.
Reply all
Reply to author
Forward
0 new messages