Create a ticket
rt_ticket_create( queue, requestor = NULL, subject = NULL, cc = NULL, admin_cc = NULL, owner = NULL, status = NULL, priority = NULL, initial_priority = NULL, final_priority = NULL, time_estimated = NULL, starts = NULL, due = NULL, text = NULL, custom_field = NULL, ... )
queue | (character) The queue |
---|---|
requestor | (character) Requestor email address |
subject | (character) Ticket subject |
cc | (character) Email address to cc |
admin_cc | (character) Admin email address to cc |
owner | (character) Owner username or email |
status | (character) Ticket status; typically "open", "new", "stalled", or "resolved" |
priority | (numeric) Ticket priority |
initial_priority | (numeric) Ticket initial priority |
final_priority | (numeric) Ticket final priority |
time_estimated | (character) Time estimated |
starts | (character) Starts |
due | (character) Due date |
text | (character) Ticket content; if multi-line, prefix every line with a blank |
custom_field | (vector) Takes a named vector of the custom field name and custom field value |
... | Other arguments passed to |
(numeric) The ID of the ticket
if (FALSE) { # We can create an empty ticket rt_ticket_create("General") # Or we can provide some of the fields rt_ticket_create("General", requestor = "requestor@example.com", subject = "An example ticket") }