Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

XRay Runtime Exception for Import Multipart using Xray JSON format


I'm currently getting an error, specifically a Java Runtime Error, "An exception occurred while handling a v2 REST API request: java.lang.RuntimeException", when trying to perform an import multipart operation using the XRay JSON multipart format/endpoint.

(This is to create NEW test items as well, by the way, not already existing ones. We currently can't use JUnit as we have a custom system using test ordering with JUnit, so we have multiple "tests" within each test class, and we need Jira/Xray Test items created for each test class, not test method)

We are on Xray v5.1.4, and have a custom field on our test items. Here is the JSON formatting for both files:

INFO JSON FILE (testexec_info.json):


    "fields": {
    "project": {
        "key": "MHV"
    "summary": "MHV - Test Execution for Jira Automation Testing 1",
    "description": "Creating of an automated test using the Jira REST API",
    "issuetype": {
        "id": "11600"
    "customfield_15400": { "value" : "MHV Test Automation"}
TEST INFO JSON FILE (file.json):
    "testExecutionKey": "MHV-24977",
    "info": {
        "summary": "MHV Automated Test Dec 1"
    "tests": [
            "start": "2014-08-30T11:47:35+01:00",
            "finish": "2014-08-30T11:50:56+01:00",
            "status": "PASS",
            "customFields": [
                    "id": 15400,
                    "value": [
                        "MHV Test Automation"
            "testInfo": {
                "summary": "MHV Automated Test creation - Dec 1",
                "testType": "Generic",
                "projectKey": "MHV",
                "definition": "Test definition"

When sending this in postman, I receive the runtime exception error. I'm trying to get more information on if this formatting may be wrong, or honestly any answers at all as to why this API call isn't working. I've followed the documentation as best I can AFAIK, and believe I have it formatted correctly, but for some reason it's still failing. I was getting the Null Pointer Error, but that seems to have been changed, and now when I change the test from Generic to Automated, I get this response:


    "testExecIssue": {
        "id": "1445836",
        "key": "MHV-24977",
    "testIssues": {
        "error": [
    "infoMessages": []

Again, our XRay version is 5.1.4.

Also, I've attempted to use the non-multipart endpoint, however I get a response stating that the value for the custom field that I'm providing is required, so I'm unsure of where the failure is for the XRay plugin to pickup on the data I'm sending and why it's ignoring the custom field value. Here's the link to my original post, still unanswered as well:



1 answer

Hi @George Goslin Jr_ 

It would be necessary to have more information about how the request is being made and the error messages returned.

It is best to contact Xray Support ( to share your configuration so that the support team can investigate further.

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

130 views 1 2
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