What’s the best way to do this: inquiry/ticket system?

I solved this by creating a custom post type “conversation” with several post meta

Post meta: number of messages
Post meta: message_1
Post meta: message_1_author
Post meta: message_1_timeline

When displaying a conversation I check against “number of messages”

for (i=1; i<=nr_messages; i++){
show_message(i);