tickets
Get ticket
One ticket.
Tokens: the relay key only.
From docs/manual/relay.html#routes.
GET
/
channels
/
{channel}
/
tickets
/
{id}
Get ticket
curl --request GET \
--url http://localhost:8787/channels/{channel}/tickets/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8787/channels/{channel}/tickets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8787/channels/{channel}/tickets/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"ticket": {
"id": "<string>",
"title": "<string>",
"status": "triage",
"priority": "high",
"createdAt": "<string>",
"updatedAt": "<string>",
"body": "<string>",
"rank": 123,
"repo": "<string>",
"base": "<string>",
"kind": "<string>",
"labels": [
"<string>"
],
"blockedBy": [
"<string>"
],
"waitingFor": [
"<string>"
],
"rejectedBlockers": [
"<string>"
],
"approved": true,
"approvedBy": "<string>",
"createdBy": "<string>",
"heldBack": "<string>",
"mark": "hold",
"task": {},
"history": [
{
"at": "<string>",
"stage": "<string>",
"by": "<string>"
}
]
}
}{
"ok": false,
"error": "<string>",
"message": "<string>"
}Authorizations
relayKeyrelayKeyQuerysessionToken
Path Parameters
⌘I
Get ticket
curl --request GET \
--url http://localhost:8787/channels/{channel}/tickets/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8787/channels/{channel}/tickets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8787/channels/{channel}/tickets/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"ticket": {
"id": "<string>",
"title": "<string>",
"status": "triage",
"priority": "high",
"createdAt": "<string>",
"updatedAt": "<string>",
"body": "<string>",
"rank": 123,
"repo": "<string>",
"base": "<string>",
"kind": "<string>",
"labels": [
"<string>"
],
"blockedBy": [
"<string>"
],
"waitingFor": [
"<string>"
],
"rejectedBlockers": [
"<string>"
],
"approved": true,
"approvedBy": "<string>",
"createdBy": "<string>",
"heldBack": "<string>",
"mark": "hold",
"task": {},
"history": [
{
"at": "<string>",
"stage": "<string>",
"by": "<string>"
}
]
}
}{
"ok": false,
"error": "<string>",
"message": "<string>"
}