Difference between revisions of "Embedding data in Create.html url"

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...")
 
Line 3: Line 3:


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





Revision as of 19:19, 14 December 2011

It is possible to pass data to RT via embedding it within a URL.

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


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.