I am gettign error only with REST api, although when I am trying using importer, same json workign fine.
first API: https://xray.cloud.getxray.app/api/v2/import/test/bulk
second API: https://xray.cloud.getxray.app/api/v2/import/test/bulk/{job_id}/status
payload i am using:
[
{
"testtype": "Manual",
"fields": {
"summary": "This is first tests added by postman",
"project": { "key": "EQA" }
},
"testtype": "Manual",
"fields": {
"summary": "This is second tests added by postman",
"project": { "key": "EQA" }
}
}
]
below is the error of job status:
{
"status": "failed",
"progress": [
"[Wed, 10 Apr 2024 20:29:35 GMT] Preprocessing the information of the 1 issues to import.",
"[Wed, 10 Apr 2024 20:30:14 GMT] Creating 1 test(s) in JIRA."
],
"progressValue": 20,
"result": {
"error": "Error importing tests."
}
}