clonemeagain / plugin-autocloser

An osTicket plugin to automatically close open tickets
GNU General Public License v2.0
40 stars 23 forks source link
osticket plugin

osTicket - Ticket Closer Plugin

Automatically closes tickets that haven't been updated in a while.

Preview of Ticket thread after plugin has run

screenshot

Caveats/Assumptions:

Install the plugin

Configure the plugin

Visit the Admin-panel, select Manage => Plugins, choose the Ticket Closer plugin.

Explanation of Setting Groups

Because you have many ticket status's, why wouldn't you want to be able to change from a status to another status multiple times? Well, maybe you do! :-) This has a defined limit of 4 setting groups, however, with minor tweaking (before installing) you can set it as high as you like. If you change it after installing, be warned, it will completely mess up the plugin config. Nothing I can do about that, tryer beware.

To change the number of groups, open the plugin directory, find the file config.php then change the following line near the top:

const NUMBER_OF_SETTINGS = 4;

The only real problem with cranking it up high, is that it will increase the amount of time the admin page takes to load.. also, you have to scroll passed all of them to get to the save button. So, only set it as high as you need.

Each Setting Group:

You can associate a status change with a Canned Reply, (or no reply), giving you control over many status changes automatically.

To reset the config

Simply "Delete" the plugin and install it again, all the configuration will reset from the defaults. Admin panel -> Manage -> Plugins, slect the checkbox next to Ticket Closer then, from the drop-down select "Delete", then "Yes, Do it!" from the popup. It's not actually deleting the plugin, just it's config. Then go through the "Add New Plugin" process again.

To enable extra logging

Open the class.CloserPlugin.php file, find:

    /**
     * Set to TRUE to enable extra logging.
     *
     * @var boolean
     */
    const DEBUG = FALSE;

Change the FALSE into TRUE.

Enjoy!