Freshservice
What is Freshservice?
Freshservice is a cloud based ITSM software for your service desk. It provides automation tools to manage incidents, assets, and more.
How It Works
Freshservice creates tickets.
- When a ticket is created in Freshservice, an alert is created in PagerTree automatically.
- When a ticket is pending (
ticket_status === 'Pending'
) in Freshservice, the alert is acknowledged in PagerTree automatically. - When a ticket is resolved or closed (
ticket_status === 'Resolved' || ticket_status === 'Closed'
) in Freshservice, the alert is resolved in PagerTree automatically.
Integration Walkthrough
In this integration tutorial we will show you how to send tickets from Freshservice into PagerTree. The estimated time for this integration is 5 minutes. We assume that you already have a PagerTree and Freshservice account setup.
In PagerTree
- Create the integration by clicking the Freshservice logo.
- Copy the Endpoint URL.
In Freshservice
-
Click the Gear Icon in the left side navigation menu to go to the admin page.
-
On the admin page, navigate to Automation & Productivity -> Workflow Automator.
Navigate to Automation & Productivity -> Workflow Automator
-
Click the New Automator button and select Ticket.
Click the New Automator button and select Ticket
-
On the New Ticket Automator form:
- Title - PagerTree
- Click Create
Freshservice PagerTree Automator
-
In the new Event form:
- When any of these events occur:
- Ticket is raised
- Status is changed from Any Status to Any Status
- These events can be performed by Anyone
- Name - Ticket is Created or Updated
- Click Done.
Ticket Automator Event
- When any of these events occur:
-
Drag the Web Request action, connecting it to your event.
-
On the Web Request Form:
-
Request Type - POST
-
Endpoint - Paste the PagerTree endpoint URL you copied earlier.
-
Credentials - Inline Credential
-
Authentication Type - No Auth
-
Body - Copy and paste the Freshservice Webhook Format (see below) into the text box.
-
Label - PagerTree Webhook
-
Click Done.
Freshservice PagerTree Web Request
-
-
Click Activate.
Click active on the Ticket Automator
-
Click Confirm.
Click confirm
You have successfully completed the Freshservice Integration.
Freshservice Webhook Format
The root node of this payload "freshdesk" is not a mistake. The Freshservice application used to send webhooks in this format. For legacy reasons, it has been kept as "freshdesk".
{
"freshdesk_webhook":{
"ticket_id":"{{ticket.id}}",
"ticket_status":"{{ticket.status}}",
"ticket_subject":"{{ticket.subject}}",
"ticket_description":"{{ticket.description | sanitize_html}}",
"ticket_url":"{{ticket.url}}",
"ticket_public_url":"{{ticket.public_url}}",
"ticket_priority":"{{ticket.priority}}",
"ticket_email":"{{ticket.from_email}}"
}
}
Troubleshooting
If you are running into issues where the rules are not firing, please check the following in Freshservice:
- Ensure you created the rules by clicking the New Ticket Automator button.
- Ensure you are diagnosing only new tickets. Old tickets will not be processed by new automators.
- Try disabling and reenabling the rule.