I dont think that you can do this with out modifying the core files.

Is ticket-open.inc.php considered one of the core files? I'm pretty certain that's the one I need to modify. I found this bit of code in user.tmpl.php:

<?php foreach ($org->getDynamicData() as $entry) {
?>
<tr><th colspan="2"><strong><?php
echo $entry->getTitle(); ?></strong></td></tr>
<?php foreach ($entry->getAnswers() as $a) { ?>
<tr><td style="width:30%"><?php echo Format::htmlchars($a->getField()->get('label'));
?>:</td>
<td><?php echo $a->display(); ?></td>
</tr>
<?php }
}
?>

I think if I paste that into ticket-open.inc.php it will achieve the desired effect, I'm just having difficulties ensuring all the variables used in this code snippet contain what they need to to produce the same output the code produces in its original location. Just pasting it in as-is breaks the page (blanks it) from that point down so I'm assuming that php code is failing because it's not getting what it needs.

Any file included in the download archive is a core file.

That's what I had assumed, thanks for confirming.
I am assuming that the getDynamicData() function gets called from class.organization and not from class.user because I'm assuming that $org is of class type Organization, but that's as far as I've been able to get. Any pointers on how to wrap my head around these data structures and how they are used here? Any debugging suggestions for looking under the hood and tracking the contents of variables?
It would be nice if someone had documented this somewhere. As I mentioned in my first post I am new to PHP. I've never studied it or worked with it before so any help would be appreciated. Thanks.

Sorry I'm not a dev, and have never edited that screen. Maybe someone else here has.

\include\staff\ticket-open.inc.php seems to be correct.
If I make any changes in core files, I try use INCLUDE, if is it possible.
In your case, you can include your own files with SQL queries to read any values from ost_organization__cdata and display it in a labels.

    PavelH That sounds like a good approach. I'll see if it helps me. Thanks.

    a month later

    PavelH I tried your approach and, after much learning and trial & error, was able to get it working exactly the way I wanted. Thanks PavelH.

    Glad to hear that you got things working. Should I close this thread?

      Very welcome. Happy Thanksgiving. (if your in the US... if not well then i feel silly saying that.)

        9 months later

        ntozier can you please help me regarding pulling data of custom fields from database
        Name | Department | Subject | myCustomfield1 | mycustomfield2 |
        XYZ | IT | |Printer | ewewe |

        I want this type of report or extracted data

        Write a Reply...