최근 검색


최근 검색 없음

Nisha GAnesh's Avatar

Nisha GAnesh

가입한 날짜: 2021년 10월 16일

·

마지막 활동: 2021년 10월 16일

팔로잉

0

팔로워

0

총 활동 수

8

투표 수

0

플랜 수

3

활동 개요

님의 최근 활동 Nisha GAnesh

Nisha GAnesh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

I would suggest that you can remove

"flexible": true

from location hash. Atleast that worked for me. And try to download and use a similar file which is given in the documentation. Hope this helps you.

댓글 보기 · 2021년 9월 11일에 게시됨 · Nisha GAnesh

0

팔로워

0

투표 수

0

댓글


Nisha GAnesh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

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님이 에 게시물을 만듦

게시물 Developer - Zendesk APIs

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

댓글


Nisha GAnesh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

Thank you Greg, yes the issue was due to invalid content in manifest file. I have downloaded the one from zendesk sample app. And it got corrected. :)

댓글 보기 · 2021년 9월 10일에 게시됨 · Nisha GAnesh

0

팔로워

0

투표 수

0

댓글


Nisha GAnesh님이 에 게시물을 만듦

게시물 Developer - Zendesk Apps Framework (ZAF)

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

댓글