rt_ticket_edit: Edit a ticket

Description Usage Arguments Value Examples

View source: R/rt_ticket_edit.R

Description

Updates an existing ticket with new information.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
rt_ticket_edit(
  ticket_id,
  queue = NULL,
  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

ticket_id

(numeric|character) The ticket number

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: 
# First, create a ticket
ticket <- rt_ticket_create("General")

# Then we can update its fields
rt_ticket_edit(ticket,
               requestor = "me@example.com",
               subject = "My subject")

## End(Not run)

NCEAS/rt documentation built on June 7, 2021, 11 a.m.