I'm trying to import TestNG results into Jira through the Multipart API (https://docs.getxray.app/display/XRAYCLOUD/Import+Execution+Results+-+REST#ImportExecutionResultsREST-TestNGXMLresultsMultipart).
My Test Exceution JSON looks like this:
{
"fields": {
"summary": "Test Execution for TestNG Execution",
"project": {
"key": "PVCON"
}
},
"xrayFields": {
"testPlanKey": "PVCON-6288"
}
}
But the resulting test execution is not associated with the test plan:
I was using the simpler version of the API (https://docs.getxray.app/display/XRAYCLOUD/Import+Execution+Results+-+REST#ImportExecutionResultsREST-NUnitXMLresults) where the test plan key is passed as a query parameter, and that worked.