I need to create a confluence page via REST API which contains a JIRA Chart
according to: https://confluence.atlassian.com/display/DOC/JIRA+Chart+Macro and https://developer.atlassian.com/display/CONFDEV/Confluence+REST+API+Examples
my implement code is
curl -u myusername:mypassword -X POST -H 'Content-Type: application/json' -d'{"type":"page","title":"A_Test_page","space":{"id":123456789,"key": "~myusername"},"body":{"storage":{"value":"
<ac:structured-macro ac:name="jirachart">
<ac:parameter ac:name="chartType">pie</ac:parameter>
<ac:parameter ac:name="statType">assignee</ac:parameter>
<ac:parameter ac:name="showinfor">true</ac:parameter>
<ac:parameter ac:name="jql">Some JQL</ac:parameter>
<ac:parameter ac:name="border">false</ac:parameter>
<ac:parameter ac:name="server">My Jira Server Name</ac:parameter>
<ac:parameter ac:name="serverId">144880e9-a353-312f-9412-e5028e8166fa</ac:parameter> <!-- I don't have this information -->
</ac:structured-macro>
","representation":"storage"}}}' http://my.wiki.server/rest/api/content | python -mjson.tool
The question is: If I don't know "serverId", is there any alternative (eg: direct to JIRA url with authentication info...) or work-arround to get the JIRA Chart up on the page?
Thank you in advance.