curl --request GET \
--url https://api.stackone.com/unified/ticketing/tickets/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'x-account-id: <x-account-id>'{
"data": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"unified_custom_fields": {
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
},
"title": "System outage in production environment",
"creator_id": "user-001",
"reporters": [
"user-001",
"user-002"
],
"assignees": [
"user-001",
"user-002"
],
"content": [
{
"plain": "This is some content",
"html": "<p>This is some content</p>"
}
],
"parent_id": "ticket-002",
"priority": {
"id": "001",
"value": "medium",
"source_value": "Normal"
},
"tags": [
"tag-001",
"tag-002"
],
"projects": [
{
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"name": "Project Falcon",
"description": "Description of the project",
"organization_id": "organization-001",
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z"
}
],
"ticket_number": "ticket-001",
"type": {
"id": "001",
"name": "Task",
"project_id": "project-001"
},
"closed_at": "2021-01-01T01:01:01.000Z",
"ticket_url": "https://help.company.com/tickets/SUP-5689",
"status": {
"id": "001",
"type": {
"value": "to-do",
"source_value": "New"
},
"name": "Backlog"
},
"organization": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"domain": "company.com",
"name": "Company"
},
"components": [
{
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"organization_id": "organization-001",
"project_id": "project-001",
"name": "Component Falcon",
"description": "Description of the component",
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z"
}
],
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z"
},
"raw": [
{
"method": "<string>",
"url": "<string>",
"body": {},
"response": {}
}
]
}Retrieve a single ticket by its identifier.
curl --request GET \
--url https://api.stackone.com/unified/ticketing/tickets/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'x-account-id: <x-account-id>'{
"data": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"unified_custom_fields": {
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
},
"title": "System outage in production environment",
"creator_id": "user-001",
"reporters": [
"user-001",
"user-002"
],
"assignees": [
"user-001",
"user-002"
],
"content": [
{
"plain": "This is some content",
"html": "<p>This is some content</p>"
}
],
"parent_id": "ticket-002",
"priority": {
"id": "001",
"value": "medium",
"source_value": "Normal"
},
"tags": [
"tag-001",
"tag-002"
],
"projects": [
{
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"name": "Project Falcon",
"description": "Description of the project",
"organization_id": "organization-001",
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z"
}
],
"ticket_number": "ticket-001",
"type": {
"id": "001",
"name": "Task",
"project_id": "project-001"
},
"closed_at": "2021-01-01T01:01:01.000Z",
"ticket_url": "https://help.company.com/tickets/SUP-5689",
"status": {
"id": "001",
"type": {
"value": "to-do",
"source_value": "New"
},
"name": "Backlog"
},
"organization": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"domain": "company.com",
"name": "Company"
},
"components": [
{
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"organization_id": "organization-001",
"project_id": "project-001",
"name": "Component Falcon",
"description": "Description of the component",
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z"
}
],
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z"
},
"raw": [
{
"method": "<string>",
"url": "<string>",
"body": {},
"response": {}
}
]
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
The account identifier
Indicates that the raw request result should be returned in addition to the mapped result (default value is false)
Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
"id,remote_id,type,ticket_number,title,creator_id,remote_creator_id,reporters,assignees,content,parent_id,remote_parent_id,closed_at,ticket_url,status,priority,tags,projects,components,organization,created_at,updated_at,unified_custom_fields"
The ticket with the given identifier was retrieved.
Show child attributes
Unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
Provider's unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
Custom Unified Fields configured in your StackOne project
{
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
}The title or subject of the ticket
"System outage in production environment"
The creator of the ticket
"user-001"
Users who reported the ticket
["user-001", "user-002"]Agents assigned to the ticket
["user-001", "user-002"]ID of the parent ticket if this is a sub-ticket
"ticket-002"
Priority of the ticket
Show child attributes
The id of the ticket priority.
"001"
The priority of the ticket.
lowest, low, medium, high, highest, unmapped_value, "medium"
The source value of the ticket priority.
"Normal"
The tags of the ticket
["tag-001", "tag-002"]Projects the ticket belongs to
Show child attributes
Unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
Provider's unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
The name of the project
"Project Falcon"
The description of the project
"Description of the project"
The organization id related to the project
"organization-001"
The timestamp when the record was created
"2021-01-01T01:01:01.000Z"
The timestamp when the record was last updated
"2021-01-01T01:01:01.000Z"
The unique ticket number or reference ID
"ticket-001"
The date the ticket was closed
"2021-01-01T01:01:01.000Z"
URL to view the ticket in the source system
"https://help.company.com/tickets/SUP-5689"
Current status of the ticket
Show child attributes
The id of the ticket status.
"001"
The name of the ticket status.
"Backlog"
Organization associated with the ticket
Show child attributes
Unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
Provider's unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
The domain of the organization
"company.com"
The name of the organization
"Company"
Components associated with the ticket
Show child attributes
Unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
Provider's unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
The organization id related to the component
"organization-001"
The project id related to the component
"project-001"
The name of the component
"Component Falcon"
The description of the component
"Description of the component"
The timestamp when the record was created
"2021-01-01T01:01:01.000Z"
The timestamp when the record was last updated
"2021-01-01T01:01:01.000Z"
The timestamp when the record was created
"2021-01-01T01:01:01.000Z"
The timestamp when the record was last updated
"2021-01-01T01:01:01.000Z"
Was this page helpful?