freshservice_agentfreshservice_agent_rolefreshservice_announcementfreshservice_assetfreshservice_asset_componentfreshservice_asset_contractfreshservice_asset_typefreshservice_business_hourfreshservice_changefreshservice_change_notefreshservice_contractfreshservice_contract_typefreshservice_departmentfreshservice_locationfreshservice_problemfreshservice_problem_notefreshservice_problem_taskfreshservice_problem_timeentryfreshservice_productfreshservice_purchase_orderfreshservice_releasefreshservice_release_notefreshservice_release_taskfreshservice_release_timeentryfreshservice_requesterfreshservice_servicefreshservice_sla_policyfreshservice_softwarefreshservice_software_installationfreshservice_software_userfreshservice_solution_articlefreshservice_solution_categoryfreshservice_solution_folderfreshservice_ticketfreshservice_ticket_conversationfreshservice_ticket_taskfreshservice_ticket_timeentryfreshservice_vendor
Table: freshservice_ticket
Obtain information about Tickets in the FreshService instance.
Examples
List all tickets
select *from freshservice_ticket;
List tickets raised by a specific email address
select *from freshservice_ticketwhere email = 'some@email.here';
List tickets that are Open
and Urgent
select t.id, t.subject, t.name as requester, t.status_desc as status, t.priority_desc as priority, t.category, t.sub_category, t.item_category, t.due_by, concat(a.first_name, ' ', a.last_name) as agentfrom freshservice_ticket t left outer join freshservice_agent a on t.responder_id = a.idwhere status = 2 and priority = 4;
Schema for freshservice_ticket
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. | |
attachments | jsonb | Ticket attachments. | |
category | text | Ticket category. | |
created_at | timestamp with time zone | Timestamp when the ticket was created. | |
deleted | boolean | Set to true if the ticket has been deleted/trashed. | |
department_id | bigint | ID of the department to which this ticket belongs. | |
description | text | HTML content of the ticket. | |
description_text | text | Plain text content of the ticket. | |
due_by | timestamp with time zone | Timestamp that denotes when the ticket is due to be resolved. | |
text | = | Email address of the requester. | |
fr_due_by | timestamp with time zone | Timestamp that denotes when the first response is due. | |
fr_escalated | boolean | Set to true if the ticket has been escalated as a result of the first response time being breached. | |
group_id | bigint | ID of the group to which the ticket has been assigned. | |
id | bigint | = | ID of the ticket. |
impact | bigint | Ticket impact. | |
is_escalated | boolean | Set to true if the ticket has been escalated for any reason. | |
item_category | text | Ticket item category. | |
name | text | Name of the requester. | |
phone | text | Phone number of the requester. | |
priority | bigint | Priority of the ticket. | |
priority_desc | text | Description of the ticket priority | |
requester_id | bigint | = | User ID of the requester. |
responder_id | bigint | ID of the agent to whom the ticket has been assigned. | |
source | bigint | The channel through which the ticket was created. | |
spam | boolean | Set to true if the ticket has been marked as spam. | |
status | bigint | Status of the ticket. | |
status_desc | text | Description of the ticket status. | |
sub_category | text | Ticket sub category. | |
subject | text | Subject of the ticket. | |
tags | jsonb | Array of tags that have been associated with the ticket. | |
type | text | = | Helps categorize the ticket according to the different kinds of issues your support team deals with. |
updated_at | timestamp with time zone | Timestamp when the ticket was last updated. | |
urgency | bigint | Ticket urgency. |