JQL

Custom JQL Query

post/jql

Request

Query parameters

project_idinteger required

Required if using service account to authenticate request.

workspace_idinteger

The id of the workspace if applicable.

Request body application/x-www-form-urlencoded

scriptstring required

The script to run.

paramsstring blob

A JSON-encoded object that will be made available to the script as the params global variable.

Example request

{
  "script": "function main(){\n  return Events(params)\n    .groupBy(\n      [\"name\"],\n      mixpanel.reducer.count()\n    )\n}\n",
  "params": "{\n  \"from_date\": 2016-01-01T00:00:00.000Z,\n  \"to_date\": 2016-01-07T00:00:00.000Z\n}\n"
}

Response

Success

object[] required

Changes

No recorded changes to this operation across all 1 revision of this API.