New Module: QuickClose

Moderator: tto

New Module: QuickClose

Postby renee » 24 Jul 2011, 11:23

If you have similar tickets again and again and you close them with the same text every time then this module might be interesting to you. In these cases it is annoying to click on "close" in the ticket zoom, wait for the "close" window, enter the text and submit it. Wouldn't it be great to close the ticket with one click in the ticket zoom?

This module adds a new item in the admin area where you can define "QuickClose" texts and after installation a new dropdown box is added in the ticket zoom. When you select one of the QuickClose texts in this dropdown the ticket is closed and an article is added to the ticket.

In the admin area you can define the text for the article, the article type and the ticket state. For the article types this module asks for the allowed article types for AgentTicketClose.

This module uses the standard OTRS mechanisms to close the ticket as an AJAX call to AgentTicketClose is started.

http://opar.perl-services.de/bin/index. ... QuickClose
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
renee
OTRS superhero
 
Posts: 241
Joined: 06 Feb 2009, 11:15

Re: New Module: QuickClose

Postby IVB » 12 Oct 2011, 13:49

OTRS v3.0.x, QuickClose v0.0.4.

When I try to add new record I get error:

Code: Select all
Field 'comments' doesn't have a default value, SQL: 'INSERT INTO ps_quick_close [..]


with details:

Code: Select all
Backend ERROR: OTRS-CGI-10 Perl: 5.12.3 OS: linux Time: Wed Oct 12 14:45:53 2011 Message: Field 'comments' doesn't have a default value, SQL: 'INSERT INTO ps_quick_close (close_name, state_id, body, create_time, create_by, valid_id, article_type_id, change_time, change_by) VALUES (?, ?, ?, current_timestamp, ?, ?, ?, current_timestamp, ?)' Traceback (23996): Module: Kernel::System::QuickClose::QuickCloseAdd (v1.1.1.1) Line: 124 Module: Kernel::Modules::AdminQuickClose::Run (v1.1.1.1) Line: 172 Module: Kernel::System::Web::InterfaceAgent::Run (v1.58.2.1) Line: 853 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 46 Module: (eval) (v1.89.2.1) Line: 204 Module: ModPerl::RegistryCooker::run (v1.89.2.1) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.89.2.1) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31
IVB
OTRS newbie
 
Posts: 8
Joined: 12 Oct 2011, 13:39

Re: New Module: QuickClose

Postby zhakal » 20 Oct 2011, 16:22

Got the same error, you could get around it by altering the database to make comments allow NULL but that isn't fixing anything but just making another issue later on.
OTRS 3.0.11 , RHLE 5.6 & CentOS 6
MSSQL 2008 R2 , Windows 2008 R2
zhakal
OTRS newbie
 
Posts: 47
Joined: 30 Jul 2011, 20:06

Re: New Module: QuickClose

Postby zhakal » 30 Dec 2011, 23:00

renee is it possible to also get a "Type" and"Service" field added the QuickClose? The most needed is "Type"
Another thing is to make the QuickClose only active in certain queues, like the it's done in "Manage Response-Queue Relations"

This way we can speed up the process really extremely much on certain tickets.
OTRS 3.0.11 , RHLE 5.6 & CentOS 6
MSSQL 2008 R2 , Windows 2008 R2
zhakal
OTRS newbie
 
Posts: 47
Joined: 30 Jul 2011, 20:06

Re: New Module: QuickClose

Postby reneeb » 18 Jun 2012, 23:09

Hi @all,

sorry for being so unresponsive. I've been quite busy. I will look into the suggestions within one week or so. Regarding adding type and other fields: It might be a good idea to check what fields in SysConfig (Ticket -> Frontend::Agent::Ticket::ViewClose) are enabled and enable them for quickclose, too. For that a "json" field in the table should be appropriate.

Maybe someone is willing to help with this. The code can be found at https://github.com/reneeb/otrs-QuickClose/
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
reneeb
OTRS guru
 
Posts: 2214
Joined: 13 Mar 2011, 09:54

Re: New Module: QuickClose

Postby reneeb » 17 Apr 2013, 04:58

I uploaded a new version with some bugfixes...

Code: Select all
CHANGES

    0.0.14

    Added a new config option: DefaultID. This is used when no CloseID was passed to frontend modules.

    0.0.12

      + redirect to last screen after close

    0.0.10 - 0.0.11

      + allow non-closed states for quick closes
      + enable queue moves with quick closes

    0.0.8/0.0.9

      + fix bug when tickets were closed from overview

    0.0.7

      + Under some circumstances the ticket id wasn't detected correctly (happened with parent-child-tickets).
        This is fixed now. Thanks to Sebastian for filing the bug.

Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
reneeb
OTRS guru
 
Posts: 2214
Joined: 13 Mar 2011, 09:54


Return to Patches / Modules

Who is online

Users browsing this forum: No registered users and 1 guest