Markus Michalski FAQ

Tab Swap

osTicket plugin Tab Swap: swaps the Reply and Internal Note tabs in the ticket view so that Internal Note comes first and is active. Works through inline JavaScript in the browser.

Deutsche Version

Back to osTicket Plugins

Tab Swap

GitHub
CI
License
osTicket
PHP

Live Demo: Try all plugins for OXID eShop, Shopware and osTicket by Markus Michalski live, with no installation and no risk. demo.markus-michalski.net

Overview

The plugin swaps the order of the Reply and Internal Note tabs in the osTicket ticket view (staff area). Internal Note then sits on the left and is the active tab, the note form is visible and the reply form is hidden.

This suits teams that mostly collaborate through internal notes and want to avoid text being sent to the customer as a reply by accident.

Without the plugin: osTicket opens a ticket with the Reply tab. Writing an internal note means switching tabs every time.

With the plugin: The ticket opens with the Internal Note tab. To reply, you switch to the Reply tab.

Documentation

Page Content
Installation Plugin folder, activation, update, deactivation and removal
Configuration The two fields of the plugin configuration
Technical details Flow, signal, inline script, safeguards, file structure
Troubleshooting Swap is not applied, frequent questions

Features

Feature Description
Tab swap The Internal Note tab is placed before the Reply tab and activated
Ticket view only The script is only output when osTicket displays a ticket
Guard against missing elements If a tab or form is missing on the page (for example without reply permission), nothing happens
Dynamic navigation The swap is applied again after pjax:success and after the osTicket event redraw.staff
On/off switch The Enable Tab Swap option turns the swap off without removing the plugin
No changes to osTicket files The plugin hooks into the object.view signal and writes neither files nor database tables

Behavior in the ticket view

Default:     [Reply (active)] [Internal Note]
With plugin: [Internal Note (active)] [Reply]

Requirements

Requirement Version Notes
osTicket 1.18.x Target version according to the README and the plugin source
PHP 7.4 or newer composer.json requires >=7.4, CI checks 7.4 to 8.3
Browser JavaScript enabled The swap is done with inline JavaScript

License

GNU General Public License v2, compatible with osTicket. See LICENSE.

Support

Report bugs and questions in the issue tracker. Please include the osTicket version, PHP version, browser, errors from the browser console and the plugin version.