K1000 Service Desk: Ticket Rules
I am getting an error in the update query for several rules which seems to involve this proprietary variable <TICKET_IDS>. For example, I have a rule to set certain submitters to a high priority based on a VIP label. Here's the update query that is giving an error:
update HD_TICKET, HD_PRIORITY as T5
set HD_TICKET.HD_PRIORITY_ID = T5.ID
where T5.NAME = 'High' and
HD_TICKET.HD_QUEUE_ID = T5.HD_QUEUE_ID and
(HD_TICKET.ID in (<TICKET_IDS>))
Others have said that these variables will always give an error except when the rule runs and turns that variable into an array. How do I test to make sure this is the case and the rule is functioning properly?
Answers (0)
Be the first to answer this question
I created a vacation rule and had to change the update query to "set HD_TICKET.OWNER_ID = 0" to get it to work right. The way the wizard wrote it or copying from another default rule it had the variable the update query should be setting in the WHERE clause which seems like it would never work in my mind.
Is this something not right in the wizard or default rules? Seems like that should get fixed if it is. - lmland 11 years ago
So, if you have HD_TICKET.ID, HD_STATUS.ID in your select statement it would correspond to she STATUS. That's one reason thou see things like "HD_STATUS.ID as HD_STATUS_ID"; that keeps HD_TICKET.ID as the ID. - MacDude 10 years ago