octo tickets: work with Helpdesk tickets

List, create, update and reply to Helpdesk tickets from the terminal with octo tickets, including status and priority filters.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

octo tickets works with the tickets in your Helpdesk. Use it to pull a queue into a script, create a ticket from another system, change a status in bulk or add a reply. Tickets belong to the workspace, so these commands do not need --agent.

Commands

Command What it does
octo tickets list Lists tickets with status, priority and assignee.
octo tickets get TICKET_ID Shows one ticket and its messages.
octo tickets create Creates a ticket.
octo tickets update TICKET_ID Changes status, priority, assignee, team or tags.
octo tickets reply TICKET_ID Adds a message to a ticket.

List tickets

octo tickets list --status open --priority urgent
octo tickets list --tag refund --limit 50 --json
Flag Values
--status open, pending, on_hold, solved, closed
--priority low, normal, high, urgent
--assignee A user id such as usr_12.
--tag A tag name. Repeat the flag for several tags.

The statuses and priorities are the ones described in Ticket statuses and Priority.

Create a ticket

octo tickets create \
  --subject "Damaged item in order A-1042" \
  --contact con_77 \
  --priority high \
  --tag damaged

You should see the new ticket id, such as tkt_5d1, with the status open. Add --message "text" to include the first message.

Update and reply

octo tickets update tkt_5d1 --status pending --assignee usr_12
octo tickets reply tkt_5d1 --message "We are sending a replacement today."
octo tickets reply tkt_5d1 --message "Customer sent photos." --internal

A plain reply goes to the customer on the ticket's channel. With --internal, the message is a private note for your team.

Warning: A reply without --internal reaches the customer at once. Check the ticket id before you run it in a loop.

Bulk updates

Combine --json with a shell loop to change many tickets.

octo tickets list --status pending --tag survey --all --json \
  | jq -r '.[].id' \
  | xargs -I {} octo tickets update {} --status solved
  • Helpdesk API describes the ticket object and its fields.
  • octo api covers endpoints that have no dedicated command.

Something unclear or missing? Tell us and we will fix the page.