import cucumber json in Xray jira -;error: Error assembling issue data: project is required

Hari Venkadesh August 23, 2024

 

 

Hello there,

 I'm trying to import cucumber json to Jira (X-ray), but I'm facing few difficulties. I've included the specifics below.

 

I have tried two api's of both 1.0 and 2.0 versions, according to below documentation
https://docs.getxray.app/display/XRAY30/Import+Execution+Results+-+REST#ImportExecutionResultsREST-CucumberJSONresultsMultipart

https://docs.getxray.app/display/XRAY/Import+Execution+Results+-+REST

 

POST /rest/raven/2.0/import/execution/cucumber/multipart?testExecKey= HTTP/1.1 Authorization: Bearer xxxxxxJ Content-Type: multipart/form-data; boundary=--011000010111000001101001 Host:ontent-Length: 405 -----011000010111000001101001 Content-Disposition: form-data; name="result" C:\Users\z040609\Downloads\bdd_report-master\bdd_report-master\POC\POC\cucumber-json\LockStatus.json -----011000010111000001101001 Content-Disposition: form-data; name="info" C:\Users\z040609\Downloads\bdd_report-master\bdd_report-master\POC\POC\cucumber-json\testExecutionInfo2.json -----011000010111000001101001-
 
I'm receiving this response"error": "Error assembling issue data: project is required" while hitting above api's. 

info:
{ "fields": { "project": { "id": "value" }, "summary": "Test Execution for cucumber Execution", "issuetype": { "id": "10212" } } }

 

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2024

Hi @Hari Venkadesh 

You are setting the project key instead the project id in "project": { "id": "IRX67017" } no ?

 

Regards

Hari Venkadesh August 26, 2024

Hi @Florian Bonniec , Thanks you, Now I can able to create test execution

Like Florian Bonniec likes this
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 26, 2024

Feel free to approve the answer if it fixed your issue.

Suggest an answer

Log in or Sign up to answer