Forums

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

Link issue problem while exporting nunit report with XrayImportBuilder

Mesut.Tekin
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!
November 1, 2022

Hello,

I'm trying to export nunit result to Jira Xray using XrayImportBuilder. I need to link the issue to another issue and I got below error. Am I missing something? XrayImportBuilder uses v2 create enpoints "rest/api/2/issue"

 

 step([$class: 'XrayImportBuilder', 
endpointName: '/nunit/multipart',
importFilePath: 'nunit3*.xml',
importToSameExecution: 'true',
projectKey: 'AT',
serverInstance: jiraServerId,
importInParallel: 'true',
inputInfoSwitcher: 'fileContent',
importInfo: """{
"fields":{
"project":{
"key":"AT"
},
"summary":"${summary}",
"issuetype":{
"name":"Test Execution"
}
},
"update":{
"issuelinks": [{
"add": {
"values": [
{
"type": {
"id": "${id}"
},
"outwardIssues": [
{
"key": "A-2326"
}
]
}
]
}
}
]

}
}"""
])

 

ERROR: Unable to confirm Result of the upload..... 
Upload Failed! Status:400 Response:{"error":"Error creating Test Execution -
Issue create failed! - issuelinks: Field 'issuelinks' cannot be set.
It is not on the appropriate screen, or unknown."}

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events