Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Import Junit results to Xray returns 404

I want to import junit results to Xray by api.
I try to do it by postman, and these are my details: 

  1.  I do POST request to the follow URL:https://MY_JIRA/rest/raven/1.0/import/execution/junit?testExecKey=MY_TEST_EXEC_ID
  2.  In  "Autherization" section I choose "Basic Auth",
    in user name field: I insert my mail. 
    in password: I insert my API token 
  3. In  headers sections:
    I choose "Content-Type" and fiil "text/xml"
  4. In body section: 
    I choose in "key" the file option, and in "value" I choose my file of results (XML format).

    But I get:
    Status code: 404 - not found,
    message: null for URI: https:// XXXXX
    See the attachments.

    I tried to do it by CURL, but same error....

    Thanks in Advance!!!

    The URL: 



The Body: 


The Authorization: 


The results: 


2 answers

Hi @yael berman How are you doing?

Welcome to the community!

As you are using Jira Cloud, you would have to make things in a different way.

First of all, you cannot use Basic Authentication. You would have to generate an API Key (Client Id and Client Secret) in your Jira instance and then use it to make a call to XRay's Authentication Rest API. It will return a token to will that you will use in your second call. 

As far as I understood, it is important to notice that you have to call the APIs that are exposed by Xpand-IT. You don't have to change the address to your domain. Based on your API Key, they will know what Jira instance they will have to affect.

The URL for authentication is:

The URL for Junit Import is:

These are other links to their Cloud API documentation:

Hope this helps!

Thanks you for your reply, 
It really helped me and solved the 404 issue. 
But now Im getting 400.  "error": "Missing data in the junit results import request"
Any idea how to solve it?

Same issue in my side. Have any idea how to solve it?

When I used binary instead of form-data, this issue is solved.

Postman 2020-03-16 10-11-27.png

Hi Yael, 


Can you please open a support ticket in our Portal

We'll need more information to better address the question.


Best Regards,

Team Xray

Suggest an answer

Log in or Sign up to answer

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