In this tutorial, you will resolve required IDs and run a complete ticket lifecycle sequence.
Goal
Create and inspect a ticket using valid TeamDynamix identifiers discovered from read tools.
Step 1: resolve required IDs
- Call
teamdynamix_discoverywithaction: "list_applications"and choose anAccountID. - Call
teamdynamix_ticketswithaction: "list_ticket_types"and your ticketapp_idand choose aTypeID. - Optional: call
teamdynamix_peoplewithaction: "search_users"to resolveRequestorUidandResponsibleUid.
Step 2: create ticket (write mode)
If write tools are disabled, set:
TEAMDYNAMIX_ENABLE_WRITE_TOOLS=true
Then call teamdynamix_tickets with action: "create_ticket" and:
app_idticket.Titleticket.TypeIDticket.AccountID
Expected: a created ticket object with ID.
Step 3: inspect and search
- Call
teamdynamix_ticketswithaction: "get_ticket"andticket_id. - Call
teamdynamix_ticketswithaction: "search_tickets"and filters (for example, status or responsible user). - Call
teamdynamix_ticketswithaction: "get_ticket_feed".
Step 4: update and comment
- Call
teamdynamix_ticketswithaction: "update_ticket"and apatchpayload. - Call
teamdynamix_ticketswithaction: "add_ticket_comment".
Expected: ticket feed now includes your update and comment.
Step 5: add related data
- Call
teamdynamix_ticket_relationshipswithaction: "create_ticket_task". - Call
teamdynamix_ticket_relationshipswithaction: "add_ticket_contact". - Optional: call
teamdynamix_ticket_relationshipswithaction: "add_ticket_asset".
Validation
You should now be able to retrieve:
- ticket details
- ticket feed
- tasks
- contacts
- linked assets