I had a hard time finding anyone that successfully got this to work on OST 1.7. So I did a lot of experimenting and finally got it working. Enjoy! I know I saw quite a few posts on here of people requesting this. I'm sure there's better ways to do this, but the code I wrote works for me and I'm a pretty novice PHP users so...
Edit the /include/staff/ticket-view.inc.php file in your OSTicket install directory.
Add in the following code:
<?php echo $info,
'PRIORITY LEVEL:
LOCATION/ROOM:
ADDITIONAL NOTES:
••••••••••••••••TICKET THREAD••••••••••••••••
'; ?>
<?php
$threadTypes=array('M'=>'Original Message','R'=>'Posted Responses', 'N'=>'Internal Notes');
$types = array('M', 'R');
if($cfg->showNotesInline())
$types = 'N';
if(($thread=$ticket->getThreadEntries($types))) {
foreach($thread as $entry) {?>
<?php echo '__________',$threadTypes[$entry,'__________
'; ?>
<?php echo Format:($entry),'
'; ?>
<?php echo Format:($entry),'
'; ?>
<?php echo Format:($entry),'
'; ?>
<?php
if($entry=='M')
$msgId=$entry;}
} else { echo '';}?>
IN BETWEEN:
TOP:
if(($teams=Team:())) {
echo '';
$teamId=(!$sid && $ticket->isAssigned())?$ticket->getTeamId();
foreach($teams as $id => $name) {
if($teamId && $teamId==$id)
continue;
$k="t$id";
echo sprintf('%s',
$k,(($info==$k)?'selected="selected"':''),$name);
}
echo '';
}
?>
* <?php echo $errors; ?>
Comments:
Enter reasons for the assignment or instructions for assignee.
* <?php echo $errors; ?>
.................
PASTE CODE IN ITALICS HERE
BOTTOM:
...................
isAssigned()?'Reassign':'Assign'; ?>">
<?php
} ?>
Ticket Print Options
×
getId(); ?>" method="post" id="print-form" name="print-form">
<?php csrf_token(); ?>
getId(); ?>">
Print Notes:
Print Internal Notes/Comments
Paper Size:
— Select Print Paper Size —