theapsgroup/freshservice
steampipe plugin install theapsgroup/freshservice

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_ticket
where
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 agent
from
freshservice_ticket t
left outer join freshservice_agent a on t.responder_id = a.id
where
status = 2
and priority = 4;

Schema for freshservice_ticket

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
attachmentsjsonbTicket attachments.
categorytextTicket category.
created_attimestamp with time zoneTimestamp when the ticket was created.
deletedbooleanSet to true if the ticket has been deleted/trashed.
department_idbigintID of the department to which this ticket belongs.
descriptiontextHTML content of the ticket.
description_texttextPlain text content of the ticket.
due_bytimestamp with time zoneTimestamp that denotes when the ticket is due to be resolved.
emailtext=Email address of the requester.
fr_due_bytimestamp with time zoneTimestamp that denotes when the first response is due.
fr_escalatedbooleanSet to true if the ticket has been escalated as a result of the first response time being breached.
group_idbigintID of the group to which the ticket has been assigned.
idbigint=ID of the ticket.
impactbigintTicket impact.
is_escalatedbooleanSet to true if the ticket has been escalated for any reason.
item_categorytextTicket item category.
nametextName of the requester.
phonetextPhone number of the requester.
prioritybigintPriority of the ticket.
priority_desctextDescription of the ticket priority
requester_idbigint=User ID of the requester.
responder_idbigintID of the agent to whom the ticket has been assigned.
sourcebigintThe channel through which the ticket was created.
spambooleanSet to true if the ticket has been marked as spam.
statusbigintStatus of the ticket.
status_desctextDescription of the ticket status.
sub_categorytextTicket sub category.
subjecttextSubject of the ticket.
tagsjsonbArray of tags that have been associated with the ticket.
typetext=Helps categorize the ticket according to the different kinds of issues your support team deals with.
updated_attimestamp with time zoneTimestamp when the ticket was last updated.
urgencybigintTicket urgency.