Create
cancel
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: Results Import Task fails with Status:400 Response:{"error":"components: components"}

Iryna R I'm New Here Jun 28, 2021

I use Xray for JIRA Jenkins Plugin to upload test results to Jira  as a post-build action

Console output in Jenkins provides error below:

[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:17 min
[INFO] Finished at: 2021-06-28T19:21:23Z
[INFO] ------------------------------------------------------------------------
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/target/surefire-reports/testng-results.xml
Saving reports...
Processing '/data/jenkins/home/jobs/tests/builds/4/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Starting XRAY: Results Import Task...
##########################################################
####     Xray is importing the execution results      ####
##########################################################
File found: /var/lib/jenkins/workspace/tests/target/surefire-reports/testng-results.xml
Starting to import results from testng-results.xml
ERROR: Step ‘Xray: Results Import Task’ failed: Unable to confirm Result of the upload..... Upload Failed! Status:400 Response:{"error":"components: components"}
Finished: FAILURE

 XRay result import task Format: TextNG XML

Project Key: HIS (the name of my Jira project)

1 answer

Hi @Iryna R 

This error means that the Components custom field is not present in your project HIS.

Please edit the fields in the Project Settings and add the Components to your project.

Kind regards,
Rogério Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
TAGS

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