vkyt
2 months agoNew Contributor
Internal Server Error /v1/automation/job/create
Hi,
I'm experiencing Error 500 when trying to post the following request to create a new automation task. I find the documentation very limited on what fields are mandatory/optional and what values are accepted. It is creating a lot of frustration and not helpful at all. Can someone point me to a more detailed API doc or the sourcecode for this endpoint?
Here's my request (stripped of credentials and file location)
POST https://prod-vortexapi.zephyr4jiracloud.com/api/v1/automation/job/create
accessKey: {accessKey}
jwt: {JWT}
Content-Type: multipart/form-data
{
"jobName": "JobName",
"automationFramework":"JUNIT",
"cycleName": "test cycle",
"folderName": "",
"appendDateTimeInCycleName": true,
"appendDateTimeInFolderName": false,
"versionName": "Unscheduled",
"projectKey": "KEY",
"cycleStartingDate": "",
"cycleEndingDate": "",
"createNewCycle": true,
"createNewFolder": false,
"file": "results.xml",
"assigneeUser": "accountID",
"jobDescription": "Descriptions"
}
I tried submitting with an additional param "mandatoryFields" for the project specific customfield and reporter value but still ended up getting the internal server error.
This is what the mandatoryFields blob look like:
"mandatoryFields": {
"customfield_2": {
"id": "21425",
"label": "Yes",
"name": "Yes"
},
"customfield_3": {
"id": "21428",
"label": "Yes",
"name": "Yes"
},
"customfield_5": {
"id": "21433",
"label": "Simple",
"name": "Simple"
},
"reporter": {
"label": "PERSON",
"name": "PERSON",
"id": "accountID"
},
"customfield_5": {
"id": "21429",
"label": "End to End",
"name": "End to End"
}
}