Get notify when a ticket is closed | Community
Skip to main content

Get notify when a ticket is closed

  • March 6, 2023
  • 1 reply
  • 0 views

alon11

Hi,
I want to write a script that will be executed every time a ticket will be closed(or solved). The script will pull the closed ticket data and will push it to another service we use.

The script will probably run on AWS Lambda so I could make a URL that will trigger the script but still will have to pass somehow the ticket id.

I will be happy to hear any tips or suggestions! 

Thanks

1 reply

Greg29
  • March 6, 2023

Hi Alon! We have event connector that works with Amazon EventBridge that will get you what you want. Specifically, you'll want to use status change ticket event, which doesn't allow you to listen for a specific event (in your situation, ticket moving to solved), but you could check the response payload for something like this:

{
...
"detail": {
...
"type"
: "Status Changed",

"previous": "open",

"current": "solved",
...
}
}

Let us know if you have any other questions!