Menu

[OQL] [UserRequest] Ticket re-assigned to Agent

2015-02-23
2015-02-24
  • David Eckel

    David Eckel - 2015-02-23

    Hello,

    we want to notify Agents and Caller that the ticket is assigned to an agent.

    But if we reassign the ticket from "pending or assigned" status, itop should not send a notification to the Caller.

    To Do this i created an OQL Query:

    SELECT Person AS p JOIN UserRequest AS u ON u.caller_id=p.id
    WHERE
    u.id=:this->id
    AND p.notify='yes'
    AND p.email NOT LIKE '%noreply%'
    AND u.status != "pending"
    AND u.status != "assigned"

    On testing the query, everything is working . But when iTop send a notification by trigger the object : Status -> assigned
    no recipient is selected.

    Has anybody a idea?

     

    Last edit: David Eckel 2015-02-23
  • Khalil Charf

    Khalil Charf - 2015-02-24

    Hi

    Please test this :

    SELECT Person AS p JOIN UserRequest AS u ON u.caller_id=p.id
    WHERE
    u.id=:this->id
    AND p.notify='yes'
    AND p.email NOT LIKE '%noreply%'
    AND u.status NOT IN ("pending", "assigned")

    Best Regards

     

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.