Forum Discussion

vkyt's avatar
vkyt
New Contributor
2 months ago

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?   

https://zephyrdocs.atlassian.net/wiki/spaces/ZFJCLOUD/pages/1686798372/Test+Automation+API+Documentation#Create-Automation-Task

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"
  }
}

 

  • ShaileshV's avatar
    ShaileshV
    Occasional Visitor

    We're observing our cloud hosted integration is not working intermittently from some time today, not sure if it's related or a different issue.

    Even when there is no report of abnormalities on https://zephyr-squad.status.smartbear.com/#