Embedding data in Create.html url: Difference between revisions

From Request Tracker Wiki
Jump to navigation Jump to search
(Created page with " It is possible to pass data to RT via embedding it within a URL. The default "Create a ticket" URL: https://rt.domain.com/rt/Ticket/Create.html?Queue=7 Can be augmented to inc...")
 
m (4 revisions imported)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:


It is possible to pass data to RT via embedding it within a URL.
It is possible to send data to RT via embedding it within a URL.  This pre-fills fields on the Create page, though it does not actually create the ticket.


The default "Create a ticket" URL:
The default "Create a ticket" URL:
  https://rt.domain.com/rt/Ticket/Create.html?Queue=7
  rt.domain.com/rt/Ticket/Create.html?Queue=7
Can be augmented to include information such as the Requestor, Subject, etc.:
Can be augmented to include information such as the Requestor, Subject, etc.:
  https://rt.domain.com/rt/Ticket/Create.html?Queue=7&Requestors=name@domain.com&Subject=stupid computer
  rt.domain.com/rt/Ticket/Create.html?Queue=7&Requestors=name@domain.com&Subject=stupid computer




You can also use this to enter information into Custom Fields. In the following example "19" is the # of the custom field, not the Name.
You can also use this to enter information into Custom Fields. In the following example "19" is the # of the custom field, not the Name.
  https://rt.domain.com/rt/Ticket/Create.html?Queue=7&Requestors=name@domain.com&Subject=stupid computer&Object-RT::Ticket--CustomField-19-Value=123456
  rt.domain.com/rt/Ticket/Create.html?Queue=7&Requestors=name@domain.com&Subject=stupid computer&Object-RT::Ticket--CustomField-19-Value=123456




List of variables accessible via the Create.html url:
Incomplete list of variables accessible via the Create.html url:
*Queue=
*Queue=
*Requestors=
*Requestors=

Latest revision as of 15:08, 6 April 2016

It is possible to send data to RT via embedding it within a URL. This pre-fills fields on the Create page, though it does not actually create the ticket.

The default "Create a ticket" URL:

rt.domain.com/rt/Ticket/Create.html?Queue=7

Can be augmented to include information such as the Requestor, Subject, etc.:

rt.domain.com/rt/Ticket/Create.html?Queue=7&Requestors=name@domain.com&Subject=stupid computer


You can also use this to enter information into Custom Fields. In the following example "19" is the # of the custom field, not the Name.

rt.domain.com/rt/Ticket/Create.html?Queue=7&Requestors=name@domain.com&Subject=stupid computer&Object-RT::Ticket--CustomField-19-Value=123456


Incomplete list of variables accessible via the Create.html url:

  • Queue=
  • Requestors=
  • CommentContent=
  • Subject=
  • Content=
  • Object-RT::Ticket--CustomField-nnn-Value= (where 'nnn' = custom field #)


Be aware that when embedding data into the URL you must respect special characters such as '&', ';', etc. You may need to encode special characters if you need to include them in your URL.