Embedding data in Create.html url: Difference between revisions

From Request Tracker Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:




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

Revision as of 18: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


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.