Hi.
I am using OTRS 3.3.8.
I have a website that shows me my customer details. I am trying to create a button to simply create a ticket for that customer in OTRS. I manage this website and the DB behind it.
I have got most of it working using the following URL, where the details are the customer details.
http://otrs.mydomain.com/otrs/index.pl? ... st=36||Sat TV;Subaction=StoreNew&Body=Customer name1 Customer name2 Customer address etc etc
Can I place a new line in the body? I would like each piece of the cutomers data on a different line, so that customers address is on a different line to their name for example. I have quite a few fields. I have tried /n and %oa.
If there is a better way of doing this I'd be happy to hear of it, I have thought about getting the web page to send an e-mail and then running a post filter, but creating the ticket directly is faster as you don't need to wait for the mail to be checked by OTRS.
Thanks in advance!
Creating tickets from a URL, new lines in 'body' field
Moderator: crythias
Re: Creating tickets from a URL, new lines in 'body' field
I have discovered the answer to this. You need to write your URI in such a way that it gets decoded into the HTML of whatever you are trying to do...
In the case of a new line you want to put:
<br/>
which encodes as:
%3Cbr%2F%3E
In the case of a new line you want to put:
<br/>
which encodes as:
%3Cbr%2F%3E