Search tickets
curl --request POST \
--url https://web.edcontrols.com/api/v2/data/tickets/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"projects": [
"<string>"
],
"includeFields": [
"content.title",
"state.state",
"plan.dueDate",
"participants.responsible"
],
"status": "completed,Completed",
"includeActive": true,
"includeArchived": true,
"archived": true,
"tag": "<string>",
"noTags": true,
"progressLabels": "<string>",
"noProgressLabels": true,
"customFields": [
"Element type"
],
"groupId": "<string>",
"mapId": "<string>",
"ticketId": "<string>",
"auditId": "<string>",
"filterRole": "<string>",
"roleMailAddress": "<string>",
"rangeFilter": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"dateRangeFilter": "overdue",
"searchByTitle": "<string>",
"searchByDescription": "<string>",
"searchByResponsible": "<string>",
"searchByAssignees": "<string>",
"searchById": "<string>",
"isRecurrent": "<string>",
"sortby": "<string>",
"aggregate": "<string>"
}
'import requests
url = "https://web.edcontrols.com/api/v2/data/tickets/search"
payload = {
"projects": ["<string>"],
"includeFields": ["content.title", "state.state", "plan.dueDate", "participants.responsible"],
"status": "completed,Completed",
"includeActive": True,
"includeArchived": True,
"archived": True,
"tag": "<string>",
"noTags": True,
"progressLabels": "<string>",
"noProgressLabels": True,
"customFields": ["Element type"],
"groupId": "<string>",
"mapId": "<string>",
"ticketId": "<string>",
"auditId": "<string>",
"filterRole": "<string>",
"roleMailAddress": "<string>",
"rangeFilter": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"dateRangeFilter": "overdue",
"searchByTitle": "<string>",
"searchByDescription": "<string>",
"searchByResponsible": "<string>",
"searchByAssignees": "<string>",
"searchById": "<string>",
"isRecurrent": "<string>",
"sortby": "<string>",
"aggregate": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
projects: ['<string>'],
includeFields: ['content.title', 'state.state', 'plan.dueDate', 'participants.responsible'],
status: 'completed,Completed',
includeActive: true,
includeArchived: true,
archived: true,
tag: '<string>',
noTags: true,
progressLabels: '<string>',
noProgressLabels: true,
customFields: ['Element type'],
groupId: '<string>',
mapId: '<string>',
ticketId: '<string>',
auditId: '<string>',
filterRole: '<string>',
roleMailAddress: '<string>',
rangeFilter: '<string>',
fromDate: '2023-11-07T05:31:56Z',
untilDate: '2023-11-07T05:31:56Z',
dateRangeFilter: 'overdue',
searchByTitle: '<string>',
searchByDescription: '<string>',
searchByResponsible: '<string>',
searchByAssignees: '<string>',
searchById: '<string>',
isRecurrent: '<string>',
sortby: '<string>',
aggregate: '<string>'
})
};
fetch('https://web.edcontrols.com/api/v2/data/tickets/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://web.edcontrols.com/api/v2/data/tickets/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'projects' => [
'<string>'
],
'includeFields' => [
'content.title',
'state.state',
'plan.dueDate',
'participants.responsible'
],
'status' => 'completed,Completed',
'includeActive' => true,
'includeArchived' => true,
'archived' => true,
'tag' => '<string>',
'noTags' => true,
'progressLabels' => '<string>',
'noProgressLabels' => true,
'customFields' => [
'Element type'
],
'groupId' => '<string>',
'mapId' => '<string>',
'ticketId' => '<string>',
'auditId' => '<string>',
'filterRole' => '<string>',
'roleMailAddress' => '<string>',
'rangeFilter' => '<string>',
'fromDate' => '2023-11-07T05:31:56Z',
'untilDate' => '2023-11-07T05:31:56Z',
'dateRangeFilter' => 'overdue',
'searchByTitle' => '<string>',
'searchByDescription' => '<string>',
'searchByResponsible' => '<string>',
'searchByAssignees' => '<string>',
'searchById' => '<string>',
'isRecurrent' => '<string>',
'sortby' => '<string>',
'aggregate' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://web.edcontrols.com/api/v2/data/tickets/search"
payload := strings.NewReader("{\n \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"content.title\",\n \"state.state\",\n \"plan.dueDate\",\n \"participants.responsible\"\n ],\n \"status\": \"completed,Completed\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"progressLabels\": \"<string>\",\n \"noProgressLabels\": true,\n \"customFields\": [\n \"Element type\"\n ],\n \"groupId\": \"<string>\",\n \"mapId\": \"<string>\",\n \"ticketId\": \"<string>\",\n \"auditId\": \"<string>\",\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByDescription\": \"<string>\",\n \"searchByResponsible\": \"<string>\",\n \"searchByAssignees\": \"<string>\",\n \"searchById\": \"<string>\",\n \"isRecurrent\": \"<string>\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://web.edcontrols.com/api/v2/data/tickets/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"content.title\",\n \"state.state\",\n \"plan.dueDate\",\n \"participants.responsible\"\n ],\n \"status\": \"completed,Completed\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"progressLabels\": \"<string>\",\n \"noProgressLabels\": true,\n \"customFields\": [\n \"Element type\"\n ],\n \"groupId\": \"<string>\",\n \"mapId\": \"<string>\",\n \"ticketId\": \"<string>\",\n \"auditId\": \"<string>\",\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByDescription\": \"<string>\",\n \"searchByResponsible\": \"<string>\",\n \"searchByAssignees\": \"<string>\",\n \"searchById\": \"<string>\",\n \"isRecurrent\": \"<string>\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web.edcontrols.com/api/v2/data/tickets/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"content.title\",\n \"state.state\",\n \"plan.dueDate\",\n \"participants.responsible\"\n ],\n \"status\": \"completed,Completed\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"progressLabels\": \"<string>\",\n \"noProgressLabels\": true,\n \"customFields\": [\n \"Element type\"\n ],\n \"groupId\": \"<string>\",\n \"mapId\": \"<string>\",\n \"ticketId\": \"<string>\",\n \"auditId\": \"<string>\",\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByDescription\": \"<string>\",\n \"searchByResponsible\": \"<string>\",\n \"searchByAssignees\": \"<string>\",\n \"searchById\": \"<string>\",\n \"isRecurrent\": \"<string>\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"size": 123,
"page": 123,
"hits": 123,
"results": [
{}
],
"aggregations": {}
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}Tickets
Search tickets
Query endpoint (despite the POST method): the filters of GET /tickets
as a JSON body, across one or more projects. Safe to retry.
- Name the projects in the body as
projects, or pass one project as thedatabasequery parameter. Adatabasein the body is ignored; with neither the request is a400. pageandsizeare query parameters, not body fields.- Results contain only ids unless you ask for fields. List the fields
you need in
includeFields(for example["content.title", "state.state", "plan.dueDate"]); without it each result is just{ "id": … }plus_idand an emptyattachments.
POST
/
api
/
v2
/
data
/
tickets
/
search
Search tickets
curl --request POST \
--url https://web.edcontrols.com/api/v2/data/tickets/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"projects": [
"<string>"
],
"includeFields": [
"content.title",
"state.state",
"plan.dueDate",
"participants.responsible"
],
"status": "completed,Completed",
"includeActive": true,
"includeArchived": true,
"archived": true,
"tag": "<string>",
"noTags": true,
"progressLabels": "<string>",
"noProgressLabels": true,
"customFields": [
"Element type"
],
"groupId": "<string>",
"mapId": "<string>",
"ticketId": "<string>",
"auditId": "<string>",
"filterRole": "<string>",
"roleMailAddress": "<string>",
"rangeFilter": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"dateRangeFilter": "overdue",
"searchByTitle": "<string>",
"searchByDescription": "<string>",
"searchByResponsible": "<string>",
"searchByAssignees": "<string>",
"searchById": "<string>",
"isRecurrent": "<string>",
"sortby": "<string>",
"aggregate": "<string>"
}
'import requests
url = "https://web.edcontrols.com/api/v2/data/tickets/search"
payload = {
"projects": ["<string>"],
"includeFields": ["content.title", "state.state", "plan.dueDate", "participants.responsible"],
"status": "completed,Completed",
"includeActive": True,
"includeArchived": True,
"archived": True,
"tag": "<string>",
"noTags": True,
"progressLabels": "<string>",
"noProgressLabels": True,
"customFields": ["Element type"],
"groupId": "<string>",
"mapId": "<string>",
"ticketId": "<string>",
"auditId": "<string>",
"filterRole": "<string>",
"roleMailAddress": "<string>",
"rangeFilter": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"dateRangeFilter": "overdue",
"searchByTitle": "<string>",
"searchByDescription": "<string>",
"searchByResponsible": "<string>",
"searchByAssignees": "<string>",
"searchById": "<string>",
"isRecurrent": "<string>",
"sortby": "<string>",
"aggregate": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
projects: ['<string>'],
includeFields: ['content.title', 'state.state', 'plan.dueDate', 'participants.responsible'],
status: 'completed,Completed',
includeActive: true,
includeArchived: true,
archived: true,
tag: '<string>',
noTags: true,
progressLabels: '<string>',
noProgressLabels: true,
customFields: ['Element type'],
groupId: '<string>',
mapId: '<string>',
ticketId: '<string>',
auditId: '<string>',
filterRole: '<string>',
roleMailAddress: '<string>',
rangeFilter: '<string>',
fromDate: '2023-11-07T05:31:56Z',
untilDate: '2023-11-07T05:31:56Z',
dateRangeFilter: 'overdue',
searchByTitle: '<string>',
searchByDescription: '<string>',
searchByResponsible: '<string>',
searchByAssignees: '<string>',
searchById: '<string>',
isRecurrent: '<string>',
sortby: '<string>',
aggregate: '<string>'
})
};
fetch('https://web.edcontrols.com/api/v2/data/tickets/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://web.edcontrols.com/api/v2/data/tickets/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'projects' => [
'<string>'
],
'includeFields' => [
'content.title',
'state.state',
'plan.dueDate',
'participants.responsible'
],
'status' => 'completed,Completed',
'includeActive' => true,
'includeArchived' => true,
'archived' => true,
'tag' => '<string>',
'noTags' => true,
'progressLabels' => '<string>',
'noProgressLabels' => true,
'customFields' => [
'Element type'
],
'groupId' => '<string>',
'mapId' => '<string>',
'ticketId' => '<string>',
'auditId' => '<string>',
'filterRole' => '<string>',
'roleMailAddress' => '<string>',
'rangeFilter' => '<string>',
'fromDate' => '2023-11-07T05:31:56Z',
'untilDate' => '2023-11-07T05:31:56Z',
'dateRangeFilter' => 'overdue',
'searchByTitle' => '<string>',
'searchByDescription' => '<string>',
'searchByResponsible' => '<string>',
'searchByAssignees' => '<string>',
'searchById' => '<string>',
'isRecurrent' => '<string>',
'sortby' => '<string>',
'aggregate' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://web.edcontrols.com/api/v2/data/tickets/search"
payload := strings.NewReader("{\n \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"content.title\",\n \"state.state\",\n \"plan.dueDate\",\n \"participants.responsible\"\n ],\n \"status\": \"completed,Completed\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"progressLabels\": \"<string>\",\n \"noProgressLabels\": true,\n \"customFields\": [\n \"Element type\"\n ],\n \"groupId\": \"<string>\",\n \"mapId\": \"<string>\",\n \"ticketId\": \"<string>\",\n \"auditId\": \"<string>\",\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByDescription\": \"<string>\",\n \"searchByResponsible\": \"<string>\",\n \"searchByAssignees\": \"<string>\",\n \"searchById\": \"<string>\",\n \"isRecurrent\": \"<string>\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://web.edcontrols.com/api/v2/data/tickets/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"content.title\",\n \"state.state\",\n \"plan.dueDate\",\n \"participants.responsible\"\n ],\n \"status\": \"completed,Completed\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"progressLabels\": \"<string>\",\n \"noProgressLabels\": true,\n \"customFields\": [\n \"Element type\"\n ],\n \"groupId\": \"<string>\",\n \"mapId\": \"<string>\",\n \"ticketId\": \"<string>\",\n \"auditId\": \"<string>\",\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByDescription\": \"<string>\",\n \"searchByResponsible\": \"<string>\",\n \"searchByAssignees\": \"<string>\",\n \"searchById\": \"<string>\",\n \"isRecurrent\": \"<string>\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web.edcontrols.com/api/v2/data/tickets/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"content.title\",\n \"state.state\",\n \"plan.dueDate\",\n \"participants.responsible\"\n ],\n \"status\": \"completed,Completed\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"progressLabels\": \"<string>\",\n \"noProgressLabels\": true,\n \"customFields\": [\n \"Element type\"\n ],\n \"groupId\": \"<string>\",\n \"mapId\": \"<string>\",\n \"ticketId\": \"<string>\",\n \"auditId\": \"<string>\",\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByDescription\": \"<string>\",\n \"searchByResponsible\": \"<string>\",\n \"searchByAssignees\": \"<string>\",\n \"searchById\": \"<string>\",\n \"isRecurrent\": \"<string>\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"size": 123,
"page": 123,
"hits": 123,
"results": [
{}
],
"aggregations": {}
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}Authorizations
Query Parameters
Body
application/json
Filters for POST /tickets/search. Each field means the same as the
query parameter of the same name on GET /tickets.
Response
Search envelope; each result holds id and the includeFields you asked for.
