Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titlePOST /rest/raven/1.0/import/feature
Panel
borderColor#ccc
borderStylesolid

Request

QUERY PARAMETERS

parameter
type
description
projectKeyString

key of the project where the tests and pre-conditions are going to be created.

multipart/form-data:

"file" : a MultipartFormParam containing a ".feature" file or a ZIP file to import.

Tip
titleExample Request

curl -H "Content-Type: multipart/form-data" -u admin:admin -F "file=@1.feature" http://yourserver/rest/raven/1.0/import/feature?projectKey=DEV

curl -H "Content-Type: multipart/form-data" -u admin:admin -F "file=@features.zip" http://yourserver/rest/raven/1.0/import/feature?projectKey=DEV

curl -H "Content-Type: multipart/form-data" -u admin:admin -F "file=@features.zip" -F "testInfo=@testInfotestInfo.json" -F "preCondInfo=@precondInfoprecondInfo.json"  http://yourserver/rest/raven/1.0/import/feature?projectKey=DEV

Responses

200 OK : application/octet-stream : Successful. The cucumber features where successfully imported to Jira.

Code Block
titleExample Output
[
	{
		"id":"14400",
		"key":"DEV-915",
		"self":"http://localhost:8727/rest/api/2/issue/14400",
		"issueType": {
            "id": "10100",
            "name": "Test"
        }
	},
	{
		"id":"14401",
		"key":"DEV-916",
		"self":"http://localhost:8727/rest/api/2/issue/14401",
		"issueType": {
            "id": "10103",
            "name": "Pre-Condition"
        }
	}
]


400 BAD_REQUEST : text/plain: Returns the error.

401 UNAUTHORIZED : text/plain : The Xray license is not valid.

500  INTERNAL SERVER ERROR : text/plain : An internal error occurred when generating the feature file(s).