Menu

notifications

2023-01-05
2023-01-16
  • Daniel Camargo

    Daniel Camargo - 2023-01-05

    Hello, how are you? I wanted to ask if there is any way to generate notifications when something is written in the ticket logs

    Thank you

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-01-05

    You can link a notification to the trigger "When log is updated".

     
    👍
    1
  • Guillaume Lajarige

    Hello Daniel,

    As Jeffrey said you have to create a trigger and a action (email) linked to it.

    For the trigger create a "Trigger on object update", then choose the Ticket or UserRequest class, then select the log attributes for which you want to be notified.

    Then create an email action, link the trigger previously created, and you should be good.

    Note: You have to set the email sender first

    Hope this helps,
    Guillaume

     
    ❤️
    1
    • Daniel Camargo

      Daniel Camargo - 2023-01-05

      Hello, thank you very much for answering :), I can also make notifications arrive when someone writes something in the binnacle?
      This is possible? By the way, I already managed to get the notification as requested, thank you very much, only this one is missing, but I don't see how to do it, could you guide me a little, thank you :)

       
      • Daniel Camargo

        Daniel Camargo - 2023-01-05

        that when someone writes something in a blog a notification arrives to the person who uploaded the ticket this is possible thanks :D

         
      • Jeffrey Bostoen

        Jeffrey Bostoen - 2023-01-06

        Use the "on object update" or even better "when log is updated" trigger.

        Then use this function to grab the latest entry:
        $this->head_html(public_log)$
        https://www.itophub.io/wiki/page?id=latest:admin:placeholders

         
  • Guillaume Lajarige

    Actually the "object update" is better. It allows you to control which log you want the notification for, and it's native. "On log update" is only part of the "send updates by email" extension.

     
    👍
    1
    • Daniel Camargo

      Daniel Camargo - 2023-01-11

      Hello how are you?
      Notifications only work for private blogs?
      Since when looking at the Target fields I can't find this public_log,
      There is only the private_log.
      That's why I don't get notifications from the public log,
      Try putting this in $this->head_html(public_log)$ but it only calls the text of the public log if something has been previously written and posted to the private log.

      Is there a solution or am I just doing something wrong?
      Thanks for answering :)

       
  • Andres acosta

    Andres acosta - 2023-01-16

    Hello, could you help me install the extension for public log notifications, but when I write something in the log I get notifications to the agent and the user at the same time, how can I make it so that only what the user wrote to the agent reaches the agent and I don't know Did I forward to the user what he wrote to the agent?
    The same thing happens to me in the agent's notifications, what is sent to the user is also sent to the agent,

    user inquiry
    SELECT Person WHERE id=:this->caller_id

    agent inquiry
    SELECT Person WHERE id = :this->agent_id

    I am using those queries, could someone help me or only in this way can notifications be used

    Thank you.

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-01-16

    Not sure if it would work, but try adding this to the end of the queries:
    AND id != :current_contact->id$

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.