Stopping auto scrolling in osTicket

I recently had occasion to update osTicket and found that there is an auto-scroll feature that gets on my nerves. The tickets that I work with frequently have a lot of meta data in the initial panel. Unfortunately, osTicket’s auto-scroll feature sends me to the comment box before I can assess what’s going on in this ticket. Then I have to scroll back up to the top to see what’s going on and formulate a response.

I discovered that the auto-scroll is controlled by JavaScript in the scp/threads.js file. Right around line 20 there is a scrollTo: function(entry) {} function defined there. All I did was add a return false right underneath the definition and osTicket leaves the scrolling to me.

scrollTo: function(entry) {
    return false;
    ...

It seems like this should be a setting somewhere, but this fix will do until the next time I update osTicket and have to go hunting where they hid this function during their latest refactoring!

Change the font in osTicket editor

In yet another customization effort, I felt compelled to modify the editor font in osTicket from Trebuchet MS to Arial. Why did I do this? Because Trebuchet MS is a terrible font, in my opinion. Notice that you may not have the same opinion, and that’s totally okay! You’re entitled to one!

Continue reading Change the font in osTicket editor

A few words about Markdown

I’ve decided to try out the WordPress Markdown block to draft this post. I’ve been using the Block Editor for some time now and, while it is really flexible design-wise, it is challenging to learn when stepping away from the Classic Editor. As time has gone on I’ve gotten pretty good with the Block Editor. But there was a block I had never heard of before: the Markdown block. I just had to dive in and find out more about it!

Continue reading A few words about Markdown

Due dates as dates in osTicket

So, I noticed that osTicket prefers to show dates for due dates and certain other fields as “human readable” dates. It displays something like Due in 2 days instead of 3/2/21 14:30 which was what I preferred; so they were the same as all the other dates. Sorting on these fields was often unreliable and the various phrases broke table displays and generally drove my OCD bonkers. Unfortunately, there is no way to change how these dates were displayed in the settings. So, I had to dig into the code.

Continue reading Due dates as dates in osTicket

Search custom fields in osTicket

Once upon a time there was no way to add searching capabilities to custom user fields in osTicket. I found a forum post detailing how to do it when searching the user list. But there was nothing on how to get it done when creating a ticket.

That is until I figured out how to get it done…

Continue reading Search custom fields in osTicket