Menu

Escalated Ticket Oql query

Jedi Star
2022-07-22
2022-08-17
  • Jedi Star

    Jedi Star - 2022-07-22

    Hi everyone!
    Please help me to write oql query, which selects escalated tickets. I managed to write only for one child class.

    SELECT Ticket AS T JOIN Contact AS C ON T.agent_id = C.id JOIN UserRequest AS R ON R.agent_id = C.id WHERE R.escalation_flag = "yes" AND T.id = R.id AND C.id = :current_contact_id

    But I need for all classes. The query is needed to show current contact's escalated tickets in User Portal
    Thank you!

     
  • Pierre Goiffon

    Pierre Goiffon - 2022-08-17

    Hello,
    escalation_flag is a UserRequest class field.
    What do you mean by children classes ?

     

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.