How to nclude ticket.saved in ZIS bundle? | Community
Skip to main content

How to nclude ticket.saved in ZIS bundle?

  • September 13, 2022
  • 3 replies
  • 0 views

Nataly11

Hi! I'm developing an app that posts to Slack every time a ticket is created/updated and runs in the background. So far I'm able to console.log the ticket object but am having trouble accessing this ticket object through ZIS actions.

Question: What is the best way to access this ticket object, should this be a flow in the ZIS bundle? Thank you in advance!

3 replies

Nataly11
  • Author
  • September 14, 2022

Thanks for the fast response! There actually is a generic "ticket save" event if the app runs in the background. Here is the doc and it works.

Currently I've got:
1. A flow when a ticket is created and it works.
2. Another flow when a ticket is updated - this should run in the background and does not work. I've been trying to model the flow for updating the ticket off of this tutorial.

Here's the ZIS bundle, is there any chance you could take a look at it?
https://gist.github.com/natalyjazzviolin/cc272e0ebf44eb9cb5dfb9e287f94b75


Nataly11
  • Author
  • September 14, 2022

I understand, I was using that doc as an example of how to test that the server-side event was firing.

So I've been checking the logs through the development process and there are no logs for the ticket updated jobSpec. I've been successfully getting logs for the ticket created jobSpec though. 

Do you know why I wouldn't be getting logs for the update ticket jobSpec, perhaps I'm missing a Choice somewhere in the bundle, or something else?

EDIT: my main goal is to make the app run independent of my user session. Currently the slack messages come through while my session is active. I've added the background location in the manifest, but the events don't come through. What am I misunderstanding here?


Nataly11
  • Author
  • September 15, 2022

I hadn't installed the jobSpec, so that did it - thank you!