Closed jackiexsun closed 2 years ago
Hi @jackiexsun 👋
Thanks so much for calling this issue out and providing great details as to why it looks like the is_sla_breach
metric is off for a few tickets.
Currently, the first_reply_time
sla policy looks to ensure the first agent or admin response is within the policy designated. I was able to look into the tickets you highlighted above (perks of working at the same company 😸) and saw that it looks like a user that is shown as is_suspended
was the employee first replying to all of these tickets.
Additionally, it looks like the employee has a role of end-user
which makes sense why the package is not counting their first response, as the package is interpreting this individual as a customer (end-user). Further, I did look at the comments this user made to the tickets and see they are in fact within the sla policy. However, the fact that the comments were made by an end-user is what is throwing the metric off.
There are two scenarios I would like to chat about before tackling any next steps:
user
table. OR
user
table and see the individual is listed as a part of the main org, but are still shown as an end-userThoughts?
Hey @fivetran-joemarkiewicz! Thanks for looking at this. You're right, we are having an issue for the user role specifically for "Sara Leon" being set to an end-user. Apparently her user was deleted from Zendesk so IT has been trying to recover that. I will follow up with IT on that. That being said, there are tickets where the first response was by an Agent/Admin, and they are still marked as being achieved but are "breached" in Zendesk. Tickets IDs: 16540 24985 26717
@jackiexsun Okay great that makes sense that it seems to be a misconfiguration of the users role for those tickets.
I just looked into the other tickets and it looks like for 16540
and 24985
the SLA was in fact achieved. For example, the ticket 24985
has an first response sla set at 2020-12-12 18:34:06 UTC
with a breach time of 2020-12-13 02:34:06 UTC
. I can then see the agent/admin first responded at 2020-12-12 18:36:04 UTC
showing only 2 minutes of lapsed time occurred to achieve the sla. Does that match your finding?
Further, I have noticed that 26717
does in fact show as achieved, but the lapse time is clearly over the sla... let me look into this one a bit more.
Further, I have noticed that 26717 does in fact show as achieved, but the lapse time is clearly over the sla... let me look into this one a bit more.
Thanks!
Sorry, I don't think I was communicating very clearly. The ticket IDs 16540
24985
are ticket IDs where the package says they are achieved but in Zendesk, they are breached.
26717
is shown as achieved in the package (which is correct as that also matched in Zendesk).
Ticket ID 22492
is another example of a ticket being marked as achieved in the package, but breached in Zendesk.
@jackiexsun I was able to look into 26717
and found out why the package sla_elapsed_time is 6251, but still shows as Achieved in Zendesk and the package.
It looks like the end-user for this ticket accidentally hit the solved button instead of submit when replying to a post. Because of this, the SLA was technically achieved because the ticket was solved before the sla was breached and a new sla was not applied after this.
However for 16540
, 24985
, and 22492
looking at the ticket first reply comments following the sla applied at time they seem to actually be within the sla window? I would be interested to find out how Zendesk is determining why these tickets are in fact breach events?
I'd be happy to chat with you live about this and show you what I am seeing for these tickets 😃
Hey @jackiexsun it was great chatting today! After we discussed how there may be a discrepancy with how Zendesk is calculating these metrics I decided to do some more digging into what publicly available docs are there on how Zendesk is calculating the first_reply_time
sla achieved/breach events. After doing some digging I found Zendesk's documentation on this matter.
Like you had brought up on the call, it seems Zendesk will look at the ticket created date of the ticket for the first_reply_time
, even if the first_reply_time
sla was applied well after the ticket was created. I created a working branch and did a minor change (see below) which accounts for this. I have tested the branch on the four tickets we were chatting about above and found they match Zendesk's reporting of being breached/achieved respectively.
It would be great if you would be able to use the below packages.yml
in your local environment and let me know if it looks like this remedies the discrepancy you have been seeing between this package and Zendesk.
packages:
- git: https://github.com/fivetran/dbt_zendesk.git
revision: bugfix/sla-first-reply-update
warn-unpinned: false
Let me know! Thanks 😃
@jackiexsun thanks so much for your raising this issue and for helping come to a conclusion on the resolution within PR #52 😄.
These changes are now live within the latest v0.7.1
release of the zendesk package. Please feel free to open another issue if you encounter any other questions, or want to discuss this ticket further.
Thanks again!
Are you a current Fivetran customer? I work at Fivetran :)
Describe the bug zendesk__sla_policies doesn't always correctly identify SLA breaches (missed SLAs).
Steps to reproduce For example ticket_id = 18717
is breached but in Zendesk, it is achieved
Other ticket_id's where is_sla_breach is true when it should be false (these are all "first_reply_time" metrics) 19505 19539 19544
Expected behavior
Project variables configuration
Package Version
Warehouse
- [ x] BigQuery - [ ] Redshift - [ ] Snowflake - [ ] Postgres - [ ] Databricks - [ ] Other (provide details below) **Additional context** **Screenshots**Please indicate the level of urgency We're currently recalculating SLA policy achievement metrics ourselves, but we'd like to transition to use the package if possible. We'll transition to use it as soon as it is accurate.
Are you interested in contributing to this package?