|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
How about the following solution?
Remind Staff about Assigned Ticket in osTicket System v1.6 RC5 Sincerely, Masino Sinaga |
|
#3
|
|||
|
|||
|
its close, but the email it sends does not parse %assigner or %assignee, it does however parse %ticket.
any thoughts? |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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);
}
|
|
#6
|
|||
|
|||
|
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:
Masino Sinaga Last edited by masino_sinaga; 09-30-2009 at 09:07 PM. Reason: clearing up the code |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
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. |
|
#9
|
|||
|
|||
|
@Skeyelab:
Did you automate this task? If not, I would be very interested in this MOD! Greetings, Torben |
|
#10
|
|||
|
|||
|
Hey,
maybe anyone other can help? This MOD would be very usefull in my opinion! Greetings, Torben |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|