最近搜索
没有最近搜索

Nisha GAnesh
已加入2021年10月16日
·
最后活动2021年10月16日
关注
0
关注者
0
活动总数
8
投票
0
订阅
3
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Nisha GAnesh
Nisha GAnesh 进行了评论,
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.
total_assigned_tickets = ticket.assignee.assigned_tickets.count => 3020
open_tickets_count = ticket.assignee.assigned_tickets.select {|a| a.status == "open" }.count => 100
But this count in 'open_tickets_count' received above does not match with:
client.search(query: "status:open assignee:294").count => 2900
Both the cases the assignee_id is same. Also when I tried to find specific groups ticket like:
groups_count = ticket.assignee.assigned_tickets.select {|a| a.group_id == "12345" }.count => 100
It returned 100 here , but using search query:
client.search(query: "group_id:12345 assignee:294").count => 3020
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:
ticket.assignee.open_ticket_count
can anyone guide here. Thanks!
查看评论 · 已于 2021年9月11日 发布 · Nisha GAnesh
0
关注者
0
投票
0
评论
Nisha GAnesh 创建了一个帖子,
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!
已于 2021年9月10日 发布 · Nisha GAnesh
0
关注者
1
投票
1
Comment
Nisha GAnesh 创建了一个帖子,
I am able to run the zat server and could make changes, I wanted to validate and package and I am getting this error. Can anyone help please? Thanks a ton!
Extract from the error is:
ruby-2.5.1/gems/zendesk_apps_support-4.29.10/lib/zendesk_apps_support/validations/manifest.rb:272:in `block in invalid_location_error': undefined method `name' for nil:NilClass (NoMethodError)
已于 2021年9月01日 发布 · Nisha GAnesh
0
关注者
2
投票
2
评论