This issue was resolved in another post:
Best
Stefan
The error message you are receiving, {"error":"components: components"}, suggests that the Jira API is expecting the imported test results to include information about the components that the tests are associated with, but the information is not being provided in the request.
To fix this, you will need to add a parameter to your curl command that specifies the component(s) associated with the test results. The parameter should be added to the end of the URL in your curl command and should be in the format of "&components=component1,component2,component3" where "component1, component2, component3" is a list of the component names.
It is also possible that the issue is coming from the permissions you have on the project, check if you have the right permission to import test results.
Another thing is to check the xml file you are uploading. Make sure that it is a valid junit report file.
It is also recommended to check the Jira API documentation to confirm the format of the data that is expected in the request and to see if there are any other parameters or settings that may be required.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the permissions to import results and the file is I'm sure correct
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.