Re: [rt-users] how to pre-fill fields?

2010-10-17 Thread Jason Edgar
Thanks Mathieu. I am particularly interested in the CallBack method you mention but I am not a Perl programmer. Can you give an example to show how I can e.g. set the subject field to Hello World? ___ On Sat, 16 Oct 2010 22:59:48 -0400, Mathieu Longtin wrote:

Re: [rt-users] how to pre-fill fields?

2010-10-17 Thread Mathieu Longtin
This is a simple example, you will need some perl code. This sets the subject and the requestor, unless they are already set. You could set other fields as well. Put this in the file local/html/Callbacks/Ticket/Create.html/Default of you RT installation. Create the directory path if needed.

Re: [rt-users] how to pre-fill fields?

2010-10-17 Thread Johan Sjöberg
You can also use variables in the URL to the Create.html page. For example rt/Create.html?Queue=3requestors=some...@somecompany.comSubject=Somesubjectmailto:rt/Create.html?Queue=3requestors=some...@somecompany.comSubject=Somesubject We use this to create links on our wiki to create new tickets

Re: [rt-users] how to pre-fill fields?

2010-10-17 Thread Jason Edgar
Thanks Mathieu. I needed to create a directory between Callbacks and Ticket to invoke the Callback when creating a new ticket. e.g. local/html/Callbacks/MyCallbacks/Ticket/Create.html/Default But I am getting the following error: Error during compilation of

Re: [rt-users] how to pre-fill fields?

2010-10-17 Thread Jason Edgar
Thanks Mathieu: I got it. An extra $ was needed before ARGSRef from line 3. I have no idea what it is for, I followed other examples from the Internet. Also the description field is called 'content'. Thanks again. On Sun, 17 Oct 2010 11:35:08 -0400, Mathieu Longtin wrote: %INIT my $ARGSRef =