Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Add name of agent who created the ticket

Hello

I am wondering if anyone out there has found a way to add the Agent's Name to the New Ticket Alert email template in OSTicket? I have looked online but all I have been able to find is this link that doesn't give much hope: https://github.com/osTicket/osTicket/issues/458

Any help/ideas would be appreciated. Thanks!

Comments

  • I wrote this code to get from the database who created the ticket
    function getCreatedBy()
    {
    $sql = 'SELECT staff FROM '.TICKET_EVENT_TABLE
    .' WHERE ticket_id='.db_input($this->getId())
    .' AND state='.db_input("created");
    if(($res=db_query($sql)) && db_num_rows($res))
    list($id)=db_fetch_row($res);
    return $id;
    }
    I put this in /include/staff/class.ticket.php and then tryied to modify onNewTicket()
    concatenating the return with the subject but it didnt work
    Thank you in advance
Sign In or Register to comment.