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

Go Back   osTicket Forums > osTicket 1.6 (Latest Release) > Mods and Customizations

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-24-2009, 03:48 PM
Skeyelab Skeyelab is offline
Member
 
Join Date: Aug 2009
Posts: 32
Default [mod req] remind

i would love a button that would send an email to an already assigned staff member to remind them to get on their tickets.

as i see it now, an email is sent out upon initial assignment, and at any time a customer replies.

but not all my support staff works every day. sometimes then need a little reminder.

i have found unassigning and reassigning works, but i just want a "remind staff" button.

any ideas on this?
Reply With Quote
  #2  
Old 09-28-2009, 03:16 AM
masino_sinaga masino_sinaga is offline
Senior Member
 
Join Date: Apr 2009
Location: Jakarta, Indonesia
Posts: 571
Send a message via Yahoo to masino_sinaga
Default Solution ...

How about the following solution?

Remind Staff about Assigned Ticket in osTicket System v1.6 RC5

Sincerely,
Masino Sinaga
Reply With Quote
  #3  
Old 09-29-2009, 11:40 AM
Skeyelab Skeyelab is offline
Member
 
Join Date: Aug 2009
Posts: 32
Default

its close, but the email it sends does not parse %assigner or %assignee, it does however parse %ticket.

any thoughts?
Reply With Quote
  #4  
Old 09-29-2009, 10:24 PM
masino_sinaga masino_sinaga is offline
Senior Member
 
Join Date: Apr 2009
Location: Jakarta, Indonesia
Posts: 571
Send a message via Yahoo to masino_sinaga
Default Update the replaceTemplateVars() function ...

Yeah. I see.

Since those %assigner and %assignee have not been replaced with the related value, then you have to modify the replaceTemplateVars() function in \include\class.ticket.php file.

I have just added the step number 4 on that my blog to modify the function in that file. Please check again through that link I gave above.

I have tested on mine, and now those %assigner and %assignee have been parsed properly.

Cheers!

Sincerely,
Masino Sinaga

Last edited by masino_sinaga; 09-29-2009 at 10:26 PM. Reason: correcting the bold tag
Reply With Quote
  #5  
Old 09-30-2009, 01:13 PM
Skeyelab Skeyelab is offline
Member
 
Join Date: Aug 2009
Posts: 32
Default

still not quite working

Code:
    //Replace base variables.
    function replaceTemplateVars($text){
        global $cfg;
        global $thisuser;
        
        

        $dept = $this->getDept();
        $staff= $this->getStaff();

        $search = array('/%id/','/%ticket/','/%email/','/%name/','/%subject/','/%topic/','/%phone/','/%status/','/%priority/',
                        '/%dept/','/%assigned_staff/','/%createdate/','/%duedate/','/%closedate/','/%url/','/%msg/','/%internal/','/%assignee/','/%assigner/');
        $replace = array($this->getId(),
                         $this->getExtId(),
                         $this->getEmail(),
                         $this->getName(),
                         $this->getSubject(),
                         $this->getHelpTopic(),
                         $this->getPhoneNumber(),
                         $this->getStatus(),
                         $this->getPriority(),
                         ($dept?$dept->getName():''),
                         ($staff?$staff->getName():''),
                         Format::db_daydatetime($this->getCreateDate()),
                         Format::db_daydatetime($this->getDueDate()),
                         Format::db_daydatetime($this->getCloseDate()),
                         $cfg->getBaseUrl(),
                         ($staff?$staff->getName():''),
			             $thisuser->getUsername(),
$this->getMsgText(),
$this->getInternalNotes()  
                         );
        return preg_replace($search,$replace,$text);
    }
Reply With Quote
  #6  
Old 09-30-2009, 09:06 PM
masino_sinaga masino_sinaga is offline
Senior Member
 
Join Date: Apr 2009
Location: Jakarta, Indonesia
Posts: 571
Send a message via Yahoo to masino_sinaga
Default Adjust that function ...

Well, it looks like your replaceTemplateVars has been changed before. That's why it looks different with mine. You have to adjust the position for each $search array element, should be match with the position for each $replace array element.

Please, use this code below. It should be working now after you use this function.

PHP Code:
    //Replace base variables.
    
function replaceTemplateVars($text){
        global 
$cfg;
        global 
$thisuser;                

        
$dept $this->getDept();
        
$staff$this->getStaff();

        
$search = array('/%id/','/%ticket/','/%email/','/%name/','/%subject/','/%topic/','/%phone/','/%status/','/%priority/',
                        
'/%dept/','/%assigned_staff/','/%createdate/','/%duedate/','/%closedate/','/%url/','/%msg/','/%internal/','/%assignee/','/%assigner/');
        
$replace = array($this->getId(),
                         
$this->getExtId(),
                         
$this->getEmail(),
                         
$this->getName(),
                         
$this->getSubject(),
                         
$this->getHelpTopic(),
                         
$this->getPhoneNumber(),
                         
$this->getStatus(),
                         
$this->getPriority(),
                         (
$dept?$dept->getName():''),
                         (
$staff?$staff->getName():''),
                         
Format::db_daydatetime($this->getCreateDate()),
                         
Format::db_daydatetime($this->getDueDate()),
                         
Format::db_daydatetime($this->getCloseDate()),
                         
$cfg->getBaseUrl(),
                         
$this->getMsgText(),
                         
$this->getInternalNotes(),
                         (
$staff?$staff->getName():''),
                         
$thisuser->getUsername() 
                         );
        return 
preg_replace($search,$replace,$text);
    } 
Sincerely,
Masino Sinaga

Last edited by masino_sinaga; 09-30-2009 at 09:07 PM. Reason: clearing up the code
Reply With Quote
  #7  
Old 10-01-2009, 02:28 PM
Skeyelab Skeyelab is offline
Member
 
Join Date: Aug 2009
Posts: 32
Default

hmm, still not right, but its ok.

anyway to automate this reminder process?

i would like all my staff to be reminded of their tickets in the mornings.
Reply With Quote
  #8  
Old 10-01-2009, 09:08 PM
masino_sinaga masino_sinaga is offline
Senior Member
 
Join Date: Apr 2009
Location: Jakarta, Indonesia
Posts: 571
Send a message via Yahoo to masino_sinaga
Default

There is no problem with mine.
It should be work also with yours.
Make sure those variables also parsed.
Afterwards, you are able to automate this task.

Sincerely,
Masino Sinaga

Last edited by masino_sinaga; 10-02-2009 at 05:00 AM.
Reply With Quote
  #9  
Old 04-20-2010, 08:46 AM
trbn trbn is offline
Member
 
Join Date: Jun 2009
Location: Wolfsburg, Germany
Posts: 83
Default

@Skeyelab:

Did you automate this task?

If not, I would be very interested in this MOD!

Greetings,
Torben
Reply With Quote
  #10  
Old 04-23-2010, 05:00 AM
trbn trbn is offline
Member
 
Join Date: Jun 2009
Location: Wolfsburg, Germany
Posts: 83
Default

Hey,

maybe anyone other can help?
This MOD would be very usefull in my opinion!

Greetings,
Torben
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 10:19 AM.