rt_ticket_create: Create a ticket

Description Usage Arguments Value Examples

View source: R/rt_ticket_create.R

Description

Create a ticket

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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,
  ...
)

Arguments

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 rt_POST

Value

(numeric) The ID of the ticket

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# 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")

## End(Not run)

rt documentation built on April 28, 2020, 1:08 a.m.