最近の検索
最近の検索はありません
Get open ticket for user without using search API
投稿日時:2021年9月10日
Hi,
Is there anyway to implement getting opened tickets of an agent without using search API. I would like to use the sideload, but not succeeded yet.Looking for something similar to this:
t1 = client.tickets(include: [users: :open_ticket_count]).first
t1.assignee.open_ticket_count
Any help would be highly appreciated. Thank you!
0
1
1件のコメント
Nisha GAnesh
I am able to see the details using the 'assigned_tickets' method, but 'open_ticket_count' method is not accessible for user. This is what I am seeing now.
But this count in 'open_tickets_count' received above does not match with:
Both the cases the assignee_id is same. Also when I tried to find specific groups ticket like:
It returned 100 here , but using search query:
So I am assuming a kind of pagination is applied when I do the count using select query. Not sure.
I am actually aiming for:
can anyone guide here. Thanks!
0