Embedding data in Create.html url: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (4 revisions imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
It is possible to | 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: |
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.