Update Ticket Owner from custom field
I have rules that pulls the Manager info from LDAP all the way into a custom field (HD_TICKET.CUSTOM_FIELD_VALUE3) in a ticket. I'm looking for some query help as I'm wanting to create an update query that will update the ticket owner to the manager listed in the custom field. I'm a little rusty on my scripting so some help would be appreciated.
2 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
update HD_TICKET
SET HD_TICKET.HD_QUEUE_ID = 7,
HD_TICKET.OWNER_ID = (select USER.ID from USER where FULL_NAME = CUSTOM_FIELD_VALUE3)
where
(HD_TICKET.ID in (<TICKET_IDS>)) - mds1981 10 years ago