Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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 a way to import a XML file as a Confluence Pace using RESt API Call or CLI

Using JIRA - Data Center Version.

I have a simple XML file with below three headers along with its corresponding content


User Story Name :XXXXXX

Description : YYYYYYYY

Acceptance Criteria : ZZZZZZZZ


Is it possible to import this .xml file onto a Confluence Page using the REST API Call.


1 answer

0 votes
Thomas Deiler Community Leader Apr 20, 2021

Dear @Santanu Roy ,

sure it is. I assume that you would like to display the 3 headers like panels or other structured elements on  a page.

All you need is the documentation to the REST API and a browser extension to test your rest calls.

The way how to do:

  • create a page like the XML data should be displayed - a sample page
  • read this page with the rest call GET /rest/api/content
  • Whats returned is JSON. Now you know how it is strucured.
  • Replace the content in this JSON with the data from your XML
  • POST /rest/api/content will create a new page with your modified JSON

You will find some samples here. I recommend to use a script language like Python or PHP to write some simple code to repeat the REST calls in an easy way without the browser extension.

So long


Note: If you just want to upload the XML as an attachment to an existing page, serach for this at the samples.

Thomas Deiler Community Leader May 05, 2021

Dear @Santanu Roy ,

was my answer useful? Then I would be happy when you click on the "green accept answer" button.

So long

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

🥓🙅🏻‍♀️ Meet-less May Badge!

Hello Confluence Community!  What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. (Read m...

617 views 4 26
Read article

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