9.x: Logging itemized ticket moves for analytics #4
jstanden
started this conversation in
Guides and Tutorials
Replies: 1 comment 1 reply
-
|
Why might you choose to use a custom record over an activity log entry? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
You can use custom records, bot behaviors, and data queries to track your own reporting metrics.
In this example, we'll create a custom record to log the movement of tickets between groups and buckets. This will also keep track of the date and the worker. A 'record changed' bot behavior will create new log records. We can then use data queries for reporting (e.g. count of tickets moved from a Dispatch group by month, tickets moved by a specific worker, average tickets moved over time, move history of a specific ticket).
Import the example package
This package will automatically create the custom record, custom fields, and bot behavior.
Navigate to Setup -> Packages -> Import
Copy/paste:
You'll have a new record type:
And a bot behavior:
Test the behavior
Navigate to Setup -> Mail -> Incoming -> Import
Copy/paste the following message:
Click the Import button.
Click on the new ticket link in the yellow alert.
From the ticket's profile page, edit and move it to a new group.
Check Search -> show all -> Move Logs to verify new log records are created.
Run reports with the new move log metrics
Navigate to Setup -> Developers -> Data Query Tester
Run this data query to subtotal ticket moves from a specific group over time:
You can use data queries like this in chart widgets on dashboards.
Beta Was this translation helpful? Give feedback.
All reactions