Skip to content

Commit

Permalink
Merge pull request newrelic#16941 from newrelic/homelessbirds-patch-7
Browse files Browse the repository at this point in the history
fix(alerts): removing freshservice notifications
  • Loading branch information
homelessbirds authored Apr 17, 2024
2 parents 2ced88a + 2be86b1 commit d36fada
Showing 1 changed file with 0 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,54 +302,6 @@ Click a test notification with default field values to see the Jira issue. If su

</Collapser>

<Collapser
className="freq-link"
id="freshservice"
title="FreshService"
>

Integrate New Relic with FreshService to automatically create and resolve FreshService tickets.

### Setup FreshService destination using Webhook

1. Go to [one.newrelic.com](https://one.newrelic.com/) > <DoNotTranslate>**Alerts & AI**</DoNotTranslate>, click <DoNotTranslate>**Destinations**</DoNotTranslate>, and then select <DoNotTranslate>**Webhook**</DoNotTranslate>.
2. Enter the following information:
* Webhook name: Reference name for your FreshService webhook.
* Endpoint URL: https://yourdomain.freshservice.com/api/v2/tickets (replace yourdomain with your FreshService help desk name)
* Enable Authorization and select Basic authorization. Enter the following information for Username and Password:
* <DoNotTranslate>**Username:**</DoNotTranslate> [FreshService API Key](https://support.freshservice.com/en/support/solutions/articles/50000000306-where-do-i-find-my-api-key-)
* <DoNotTranslate>**Password:**</DoNotTranslate> X (password is just uppercase X)
3. Save destination.

### Create a Workflow and customize FreshService attributes with Workflow variables

1. Go to [one.newrelic.com](https://one.newrelic.com/) > <DoNotTranslate>**Alerts & AI**</DoNotTranslate> > click <DoNotTranslate>**Workflows**</DoNotTranslate>. Click on <DoNotTranslate>**+ Add a new workflow**</DoNotTranslate>.
2. Enter a name for the Workflow.
3. Under Filter data, create a desired filter criteria to send notifications to a destination.
4. Under Notify, select <DoNotTranslate>**Webhook**</DoNotTranslate> and customize the notification message with the following information:
* In the Destination field, select the FreshService destination created in the steps above.
* Customize the payload to send [Workflow variables](/docs/alerts-applied-intelligence/applied-intelligence/incident-workflows/custom-variables-incident-workflows/) to relevant [FreshService parameters](https://api.freshservice.com/#create_ticket). (See Sample Payload)
* See [Handlebars Syntax](/docs/alerts-applied-intelligence/notifications/message-templates/#handlebars-syntax) for additional information on helper functions for Workflow Variables.
* See [FreshService Custom Fields](https://support.freshservice.com/en/support/solutions/articles/154126-customizing-ticket-fields) for adding Custom Fields.
* Workflow Variable Type must match FreshService Parameter Type.
5. Test the notification by clicking “Send test notification”. Navigate to FreshService tickets to view newly created ticket.

### Sample Payload
```handlebars
{
"subject": {{json annotations.title.[0]}},
"description": "{{issuePageUrl}}",
"priority": 1,
"status": {{#eq state "ACTIVATED"}}2{{else}}5{{/eq}},
"email": "supportemail@domain.com",
"custom_fields": {
"nr_account_id": {{nrAccountId}}
}
}
```

</Collapser>

<Collapser
className="freq-link"
id="mobile_push"
Expand Down

0 comments on commit d36fada

Please sign in to comment.