Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error while importing TestNG report to Xray : {"error":"Error assembling issue data: Field \u0027cus

Olga Gilmore
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 7, 2022

When importing a TestNG report to XRAY, I get this error:

{"error":"Error assembling issue data: Field \u0027customfield_10019\u0027 cannot be set. It is not on the appropriate screen, or unknown."}

This import was working for a test project. But now does not work for a production project seemingly because there are many custom fields defined there.

I was able to find custom field 10019 via an JIRA API call, and it is a custom field for a Test Execution.

{
"id": "customfield_10019",
"name": "Tests association with a Test Execution",
"custom": true,
"orderable": true,
"navigable": true,
"searchable": true,
"clauseNames": [],
"schema": {
"type": "array",
"custom": "com.xpandit.plugins.xray:testexec-tests-custom-field",
"customId": 10019
}
},

It appears there's an association between Issues and screens. The screen(s?) which seems to correspond to this custom field does not have this field tab in it. I'm puzzled at why I need to know all these internals for an import, especially if I don't use the field, and it is not a required field.

{jiraURL}/plugins/servlet/project-config/{project}/fields

image.png

Any help is appreciated here.

0 answers

Suggest an answer

Log in or Sign up to answer