Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Installation and Setup Help

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-11-2012, 10:17 AM
Castile Castile is offline
Junior Member
 
Join Date: Apr 2012
Posts: 1
Default Add New Variable?

Is there a way in osTicket to add a variable? I want it to search the original customer ticket and instead of quoting the original message via %message, I would like for it to find the part called Email reference id: and quote both the Email reference id and the ID # using a new variable called %emailID.

Help?
Reply With Quote
  #2  
Old 04-18-2012, 12:33 PM
ntozier's Avatar
ntozier ntozier is offline
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,600
Default

There is not a way to do this within the OSTicket interface. However if you know PHP/MySQL you could mod the source to add this in.

The messageId is stored in the ost_ticket_message table.

Base variables are dealt with in \include\class.ticket.php in the replaceTemplateVars function which starts circa line 417. I'm not sure if you can just add it there and have it work or if you would have to change a SQL query somewhere.

I hope this helps. Good luck.
Reply With Quote
  #3  
Old 07-03-2012, 10:07 AM
fixed fixed is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
Default

Hi, did you find a solution to this?

greetings
Reply With Quote


Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:17 AM.