Closed clackner-gpa closed 11 months ago
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
This PR was closed because it has been stalled for 10 days with no activity.
This PR adds the ability to trigger webhooks to tie into various applications such as Slack, Mattermost etc when a Ticket changes. To configure a webhook the
src/settings/json/webhook-config.json
can be edited. Fields in each hook are:action
- eithercreated
orupdated
.created
fires if a new model is added,updated
fires when an existing model is updatedmodel
- specifies the model the webhook is attached to options are:messages
,departments
,groups
,notices
,notifications
,tags
,tickets
,ticketpriorities
,users
,ticketStatuses
payload
- the payload send to the endpoint. Strings can include substitutions of the form{{sub}}
wheresub
is aJS expression with the
datavariable available and corresponding to the model. (e.g. for
ticketsyou can use
{{ticket.uid}}`endpoint
- The URL of the endpoint that gets called.