K1000: Running a rule against multiple queues?
Hi:
So I've defined some rules on a specific queue, and I'd like to have those rules run on tickets in a second queue as well. I could duplicate/recreate the tickets in the second queue's configuration, but ideally I'd have only a single set. Makes it easier when changes need to be made.
From reading the K1000 documentation, this seems completely doable, but it's not working for me so far. At the end of the Select SQL code, my where statement looks like this:
where HD_PRIORITY.ID = HD_PRIORITY_ID
and HD_STATUS.ID = HD_STATUS_ID
and HD_IMPACT.ID = HD_IMPACT_ID
and HD_CATEGORY.ID = HD_CATEGORY_ID
and (( HD_STATUS.NAME like '%Grading%') and (HD_TICKET.HD_QUEUE_ID = 15 or HD_TICKET.HD_QUEUE_ID = 12) )
and HD_STATUS.ID = HD_STATUS_ID
and HD_IMPACT.ID = HD_IMPACT_ID
and HD_CATEGORY.ID = HD_CATEGORY_ID
and (( HD_STATUS.NAME like '%Grading%') and (HD_TICKET.HD_QUEUE_ID = 15 or HD_TICKET.HD_QUEUE_ID = 12) )
This rule was originally developed for queue ID 15, and still works perfectly on that queue. If a ticket has a status that includes the word "Grading" in the status, the rule actions take effect.
It will not, however, perform any actions on tickets in queue ID 12, either On Ticket Save or when the rule is run manually.
Anyone see anything obvious that I'm screwing up?
1 Comment
[ + ] Show comment
-
When is the rule set to run? - JasonEgg 8 years ago
-
On Ticket Save. - erzeszut 8 years ago
Answers (2)
Please log in to answer
Posted by:
chucksteel
8 years ago
I believe that when the rule is run KACE adds a line to the where clause which limits the rule to the queue where it is configured. There is an entry in the user voice forum to change this functionality:
Comments:
-
I definitely have rules that apply to all my queues. In that case, I don't have "HD_TICKET.HD_QUEUE_ID" in my WHERE clause at all. - JasonEgg 8 years ago
Posted by:
BHC-Austin
8 years ago
Try something like this, only grouping the ticket queue id checks:
where HD_PRIORITY.ID = HD_PRIORITY_ID
and HD_STATUS.ID = HD_STATUS_ID
and HD_IMPACT.ID = HD_IMPACT_ID
and HD_CATEGORY.ID = HD_CATEGORY_ID
and HD_STATUS.NAME like '%Grading%'
and HD_STATUS.ID = HD_STATUS_ID
and HD_IMPACT.ID = HD_IMPACT_ID
and HD_CATEGORY.ID = HD_CATEGORY_ID
and HD_STATUS.NAME like '%Grading%'
and (HD_TICKET.HD_QUEUE_ID = 15 or HD_TICKET.HD_QUEUE_ID = 12)