1. Home
  2. API & Integrations
  3. POST /run/ – Creates a Test Run for a Test Case in Jira

POST /run/ – Creates a Test Run for a Test Case in Jira

POST /api/v1/run/

Creates a Test Run to execute a Test Case in Jira. You can use this API to send a Test Result from your automation testing tool i.e. selenium or integrate your own framework.
Request

BODY PARAMETERS json format

case REQUIRED
object

"case": {
        "key": "DEV-C3"
    }


asset REQUIRED
object
Supported values for type: issue, folder, plannedRun

When asset type is issue

"asset": {
        "type": "issue",
        "key": "DEV-1",
    }

When asset type is folder

"asset": {
        "type": "folder",
        "identifier": "",
    }

When asset type is plannedRun

"asset": {
        "type": "plannedRun",
        "key": "DEV-PR44",
        "iteration": {
            "key": "DEV-PRI4"
        }
    },

result REQUIRED
object
Supported values: passed, failed, n/a, passed in progress, failed in progress, n/a in progress

"result": {
        "name": "passed"
    }

properties OPTIONAL
object

supported object keys for "release" and "sprint" can be "jiraID" instead of "name".

If you use "jiraID" you will need to provide the actual "JiraID" for the object. Example instead of using "Sprint1" with object "name" you can use "jiraID" with object value = "9" referring to sprintid from your Jira workspace.


"properties": {
        "environment": {
            "name": "UAT"
        },
        "release": {
            "name": "1.2"
        },
        "sprint": {
            "name": "Sprint1"
        }
    }

timezone OPTIONAL
string
"timezone": "Australia/Sydney"

Authorization
API Key

Related Articles