your better off putting that info into the ticket itself. Try doing something like i did. I made a PHP IF statement that basically dose this. If the field is populated with data then show it. If not then hide it. Works great when i have a ticket that has 15 fields to fill in but no all of them are required so some of the info can be skipped if the user decides too and if they do i never see the skipped fields.
here's my code.
$a = new stdclass();
$b = new stdclass();
$c = new stdclass();
$d = new stdclass();
$a->value = '<tr><th width="50%">Visit Date:</th><td>';
$b->value = '</td></tr>';
$c->value = '<tr><th width="50%">Can Sync:</th><td>';
$d->value = '</td></tr>';
<?php
//Setup the switch call the variable you will use for the ifelse
$switch = $dept->getName();
//Set fields you will be using and call them here
$one = Format:($ticket->getVisit_Date());
$two = $ticket->getSync();
//Ifelse dependent on department, different departments have different tickets hence different fields to show or hide
if ($switch=='Desktop / Tablet Support') {
}
else if ($switch== 'Misys / Allscripts') {
echo ($a->value);
echo $one;
echo ($b->value);
echo ($c->value);
echo $two;
echo ($d->value);
}
else {
}
?>