Details
-
Story
-
Status: Closed
-
Major
-
Resolution: Done
-
None
-
None
Description
When importing execution results with the Xray REST API and the JUnit format, it should be possible to define any JIRA field to create/update the corresponding Test Execution issue.
For this, a new multipart endpoint shall be provided. One of the parts contains the XML report content corresponding to the test runs; the other part contains the info JSON content, related with the fields of the Test Execution. The later follows the syntax of JIRA REST api for updating/creating issues.
POST /api/v1/import/execution/junit/multipart
Example content of info JSON part, with the fields to be set in the Test Execution:
{
"fields": {
"project": {
"id": "10402"
},
"summary": "My Test Execution",
"issuetype": {
"id": "10007"
},
"components" : [
{
"name":"Interface"
},
{
"name":"Core"
}
]
}
}