Menu

Trigger type

Joe Garcia
2024-02-15
2024-02-16
  • Joe Garcia

    Joe Garcia - 2024-02-15

    Hey guys,

    I'm just wondering if what type of trigger should I use since I'm hoping to create a trigger notification after 2 days that the ticket hasn't been touch or update, is it threshold or creation?

     
  • Vincent @ Combodo

    There is no easy solution to be notified "after 2 days that a ticket hasn't been updated".
    No standard trigger can do that, as a trigger is triggered when something happen to an object, never when nothing happen.
    A threshold might do the job. You will need to create a new stopwatch with a 2 days goal and a Threshold at 100%. Then when the Ticket is updated while in that state, you should reset the stopwatch
    $this->ResetStopWatch('MyStopwatch');
    Then use a trigger on threshold to generate the notification.

     
  • Pierre Goiffon

    Pierre Goiffon - 2024-02-16

    Hello,
    Another possibility would be to create your own background task (a class implementing iProcess). That would require more code but would allow more flexibility.

     

Log in to post a comment.