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: Unable to import test execution with test cases using JIRA api.



Hope you are doing well!.

I'm trying to import test execution with a few test cases but unable to do so.


Input JSON file content

"tests": [
"testKey": "TK-0001",
"status": "FAILED",
"comment": "Error: expected 400 \"Bad Request\", got 200 \"OK\". Along with some json string."
"info": {
"summary": "Automated TestExecution for release V1.2",
"description": "This execution is automatically created when importing execution results from an external source"


{"error":"Error creating Test Execution - Issue create failed!"}

NOTE: As per the documentation,, If I do not provide testExecutionKey , a new test execution would be created using info object and all the tests in tests object would be associated to it.

I'm not sure if I'm doing something wrong. Your inputs would be highly appreciated.



2 answers

But I see another issue. My execution is created along with tests. But tests do not have the comment though I send it in the request. 

Could someone please help and let me know why!


The issue was on my side. I was using the client_id and client_sceret of the user that did not exists.



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