It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there any JAVA API available to import or create macro in confluence ?

I am developing a plugin to import the exported data from a confluence space. 
In entities.xml  there some data related to macro

<id name="id">212640767</id>
<property name="body"><![CDATA[<p><ac:structured-macro ac:name="include" ac:schema-version="1" ac:macro-id="287cfcbc-03ce-4fc1-b1ca-3ff78c5e1f76"><ac:parameter ac:name=""><ac:link><ri:page ri:space-key="CONSTELLATION" ri:content-title="french flag link" /></ac:link></ac:parameter></ac:structured-macro><ac:structured-macro ac:name="include" ac:schema-version="1" ac:macro-id="63ad9df3-97ab-46d5-a3a3-dd053146bbde"><ac:parameter ac:name=""><ac:link><ri:page ri:space-key="CONSTELLATION" ri:content-title="english flag link" /></ac:link></ac:parameter></ac:structured-macro></p><p><ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="c5556845-23e6-4616-a55b-6451d210c60b"><ac:parameter ac:name="">french</ac:parameter></ac:structured-macro></p><ac:structured-macro ac:name="panel" ac:schema-version="1" ac:macro-id="83b0f057-96b9-423e-aaa4-d38da01c11b0"><ac:parameter ac:name="title">French</ac:parameter><ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter><ac:rich-text-body><p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="warning" ac:schema-version="1" ac:macro-id="05f48757-e037-42ba-8e68-81c224845648"><ac:rich-text-body><p><span style="color: rgb(255,0,0);"><span style="color: rgb(0,0,0);">Tous les services de la Forge sont maintenant inaccessibles, </span><span style="color: rgb(0,0,0);">seul le JIRA de la Forge est disponible pour les projets qui ont r&eacute;alis&eacute; une migration vers Constellation.</span></span></p><p><span style="color: rgb(255,0,0);">Des informations d&eacute;taill&eacute;es ici : </span><span style="color: rgb(255,0,0);"><ac:link><ri:page ri:content-title="Que se passe t'il apr&egrave;s la fin des services de la Forge - what happens after the stop of the Forge services" /><ac:plain-text-link-body><![CDATA[Que se passe t'il après la fin des services de la Forge - what happens after the stop of the Forge services]] ></ac:plain-text-link-body></ac:link></span><span style="color: rgb(255,0,0);">&nbsp;</span></p></ac:rich-text-body></ac:structured-macro><p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="warning" ac:schema-version="1" ac:macro-id="ffc5d78b-c659-41ce-a2d2-e38219cd82a9"><ac:rich-text-body><p>Si vous souhaitez r&eacute;cup&eacute;rer des donn&eacute;es depuis votre projet Forge ferm&eacute;, merci de faire une Demand IT<strong><br /></strong></p></ac:rich-text-body></ac:structured-macro><p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="warning" ac:schema-version="1" ac:macro-id="20104c4b-b117-4879-b63f-12c0bd65f84b"><ac:rich-text-body><p>Si votre besoin est de migrer des donn&eacute;es de votre JIRA de la Forge vers un JIRA de Constellation, consultez cette page <ac:link><ri:page ri:content-title="Migration Forge JIRA -&gt; Constellation JIRA" /><ac:plain-text-link-body><![CDATA[Migration Forge JIRA -> Constellation JIRA]] ></ac:plain-text-link-body></ac:link></p></ac:rich-text-body></ac:structured-macro><p class="auto-cursor-target"><br /></p></ac:rich-text-body></ac:structured-macro><p><ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="840d3a37-8f03-4351-9489-cddaf933d175"><ac:parameter ac:name="">english</ac:parameter></ac:structured-macro></p><ac:structured-macro ac:name="panel" ac:schema-version="1" ac:macro-id="78d14647-27c0-490a-92af-38c8568eedb5"><ac:parameter ac:name="title">English</ac:parameter><ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter><ac:rich-text-body><p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="warning" ac:schema-version="1" ac:macro-id="1ac2ba44-3c09-4b39-bc28-70cc07a7d1fa"><ac:rich-text-body><p><span lang="en">All of the Forge services are now unaccessible<span style="color: rgb(255,0,0);">, </span>only the JIRA is available for the projects having executed a migration to Constellation.</span></p><p>Detailed information here : <ac:link><ri:page ri:content-title="Que se passe t'il apr&egrave;s la fin des services de la Forge - what happens after the stop of the Forge services" /><ac:plain-text-link-body><![CDATA[Que se passe t'il après la fin des services de la Forge - what happens after the stop of the Forge services]] ></ac:plain-text-link-body></ac:link></p></ac:rich-text-body></ac:structured-macro><p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="warning" ac:schema-version="1" ac:macro-id="d50e8feb-7fc8-4a38-b8ee-a9df1fe0c135"><ac:rich-text-body><p>If you need to retrieve data from your closed Forge projects, please notify an IT request<strong><br /></strong></p></ac:rich-text-body></ac:structured-macro><p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="warning" ac:schema-version="1" ac:macro-id="154e2328-6cbe-4c33-bd95-af8a44fe096f"><ac:rich-text-body><p>If you need to migrate data from your opened Forge JIRA to a constellation JIRA, plese refer to <ac:link><ri:page ri:content-title="Migration Forge JIRA -&gt; Constellation JIRA" /><ac:plain-text-link-body><![CDATA[Migration Forge JIRA -> Constellation JIRA]] ></ac:plain-text-link-body></ac:link><strong><br /></strong></p></ac:rich-text-body></ac:structured-macro><p class="auto-cursor-target"><br /></p></ac:rich-text-body></ac:structured-macro><p class="auto-cursor-target"><br /></p>]]></property>
<property name="content" class="Page" package="com.atlassian.confluence.pages"><id name="id">212610710</id>
</property>


Is there any JAVA API available to import this confluence ?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,583 views 7 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you