Scenario:
I want to upload the test results to Xray's test plan ticket. For that, I am using `@xray-app/playwright-junit-reporter` to generate junit reporter XML compatible with Xray.
Now, I want to import this `results.xml` file to test plan on my Jira project.
I am using this curl command for that:
curl -i -H "Content-Type: application/xml" -X POST -H "Authorization: Bearer <My_Token>" --data @test-results\results.xml "<My-Jira-Project-Base-Url>/rest/raven/2.0/import/execution/junit?projectKey=<MyProjectKey>&testPlanKey=<MyTestPlanKey>"
We have Jira Datacenter here. Let me know if there's any issue request command here. I am confused with Project ID here as well. I have a numeric id as well of the project. Should I use the projectKey which we see on the URL? eg: if the URL is:
`https://<JIRA-BASE-URL>/browse/<PROJECT-NAME>`
then I am using PROJECT-NAME as my project key.