https://github.com/clonemeagain/plugin-autocloser

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

Feel free to propose features in the issue queue.

Features:

- Define a maximum ticket age with no responses.

- Type a friendly message telling your users why their ticket is being auto closed (with full access to ticket variables).

- Let's you choose the start and end states. For instance, if you only want to autoclose tickets in the state Pending, you can.

- Batch the closure of old tickets on a schedule via cron, closes as many or as few at a time as you want.

- Apply filters to only autoclose expired tickets, or tickets that have been answered.

- Can even work with autocron!

Requires zero mods to core.

Built for 1.10.

6 days later

Hello,

Thanks for developing the plugin, I need to know how to see if the plugin is working or some parameter is missing ...

I have configured the plugin to automatically close tickets with the status "Resolved" and change it to "Closed" if 2 days pass, the ticket still does not close.

Is there any way to view the activity logs of the plugin?

It posts to the thread when it changes the status. So you should see that.

However, without seeing how you've configured it I couldn't say more precisely.

The extra logging can be enabled with a small change to the class, I'm thinking of making that an admin setting now. See the readme for details.

If you want to open an issue on GitHub with a screenshot of the plugin config, I'll replicate it on my end and see what's happening.

The most obvious thing to check: is have you enabled the plugin? You can install it and configure it without actually enabling it.

Sorry grizzly, the plugin works fine.I attach the config, I have activated the debug as you indicate in github, however I do not know where to find the debug that are created.

inf plugin.jpg

inf server.jpg

With debug mode on, it should be filling your cron emails with information every time cron runs. Can you post the contents of such a message? It should display the SQL looking for tickets to work on.

Unless you're not getting email when cron outputs text? Try manually running cron from the command line.

I've never used that cron job, and I do not see the option on the admin panel -> general configuration ....However the plugin is working fine, thanks for all grizly; D

Great plugin.Thanks so much.Regards

@[deleted]: you're very welcome, thanks!

@[deleted]: it's part of configuring osticket, setting up cron, http://osticket.com/wiki/POP3/IMAP_Setting_Guide#Schedule_Polling maybe I shouldn't assume that everyone uses it the same way I do.

I have not reviewed this section of the options ... the auto-cron does not have it activated, it is necessary to activate it so that the debugging arrives?

Email Fetching.jpg

Well, it only works via cron, so if you've not configured cron at all, then it won't do anything.

You can use autocron, just tick the box and reduce the number of tickets you want to close each time. Because autocron runs after agent activity.

Done, the auto cron is enabled and config for plugin to.THX for all Grizly 

new plugin config.jpg

12 days later

hi, can we keep the status from "Hold" to "Hold" also & send canned respose. Further, is it possible to have different robot settings for each group.const NUMBER_OF_SETTINGS = 4;

1. I haven't tried that, but give it a go.

2. It's possible to add that, but currently not.

3. Should probably be NUMBER_OF_GROUPS really shouldn't it. One of the two: https://martinfowler.com/bliki/TwoHardThings.html

a year later

Sorry for waking up an old thread but i have some issues with the autocloser.
Setup with 5 groups. Function of changing state is working fine but the problem is that i cannot save a canned respones. (No canned is sent out either)
When choosing a canned respones and save, i got the 'green flag' but after going out and back to the plugin there 'No reply' instead of my canned resp.
On my labsys i did setup it the first time after installing it with the first group only and a canned resp. That's working, but also when trying to add a second group with canned resp that one also go back to no reply.

Server Information
osTicket Version v1.10.4 (035fd0a) — Uppdaterad
Web Server Software Apache
MySQL Version 5.5.42
PHP Version 7.2.10

    rora
    I am not using autocloser, but I think your issue might be due to PHP version 7.2.x (recommended ver. 5.6, I am using 7.0 and so far no issues), which is not supported by osTicket ver. 1.10.4 it may be on 1.11

    3 months later

    Hi @Grizly
    Excelent Plugin. Eager to install over the weekend the upgrade to 1.11
    Will it work on the latest version as well? Or should I wait?
    Keep up the excelent work :-)
    Cheers,
    Paco

    @pakko Hey, unfortunately I haven't tested 1.11 at all yet.. so couldn't say.

    Ah I see. Well when you get around to it will you be so kind to inform us here, please?
    I tought i have turned of the email notification for the cron but it seems not to be the case, get every 2 minutes an email with subject:
    Cron <client@clients-ip> /opt/plesk/php/5.6/bin/php -f 'clients-sundomain/api/cron.php' -- '--user-agent=clients-hash' > /dev/nul. Is the last part wrong?
    Cheers,
    Paco

    9 days later

    Just got my 1.11 Docker environment running, tested, works fine mate.