[SOLVED] Add Note while Closing Ticket

Moderator: crythias

Locked
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

[SOLVED] Add Note while Closing Ticket

Post by PriteshP23 »

Hello,

When agent close the ticket, there is no message by default. I came to know that we can add predefine message by " Ticket::Frontend::AgentTicketClose###Body". The problem is there are multi notes (predefine message) like double / spam / end communication / etc.

Please have a look at image. I hope i am clear. If you have ANY idea, please let me know.

Thanks in advanced for your input and time.
You do not have the required permissions to view the files attached to this post.
Last edited by PriteshP23 on 12 Dec 2014, 10:58, edited 1 time in total.
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Add Note while Closing Ticket

Post by reneeb »

If you want to close tickets without any additional work, http://opar.perl-services.de/dist/QuickClose might be something for you.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: Add Note while Closing Ticket

Post by PriteshP23 »

@reneeb
I installed it but i don't how to add QuickClose texts by frontend ? Any idea? (May be in admin area / SysConfig)
Many tahnks !
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Add Note while Closing Ticket

Post by reneeb »

In the admin area, you'll find a link called "QuickClose". It's in the System Settings block.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Add Note while Closing Ticket

Post by jojo »

Texttemplates are possible in OTRS 4
2014120256000012_-_Close_-_Ticket_-_OTRS_5.png
You do not have the required permissions to view the files attached to this post.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Add Note while Closing Ticket

Post by crythias »

Or, use a reply with next state closed successfully.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: Add Note while Closing Ticket

Post by PriteshP23 »

@reneeb
In the admin area, you'll find a link called "QuickClose". It's in the System Settings block.
I am sorry but I found 4 results in QuickClose. Can you elaborate please? Do i need to add in Frontend::Module###AgentQuickClose ? Can you give an example to add text "double", please? Have a look at image:
@jojo:
Texttemplates are possible in OTRS 4
I am using OTRS 3.3.6

Thanks !
You do not have the required permissions to view the files attached to this post.
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: Add Note while Closing Ticket

Post by PriteshP23 »

Hello,
I got it in Admin area. Earlier i have searched in SysConfig. Sorry for misunderstanding.

Sorry for disturbing again But now the error while adding the text:
Error Message: ERROR: invalid input syntax for integer: "", SQL: 'INSERT INTO ps_quick_close ([..]

Code: Select all

Backend ERROR: OTRS-CGI-98 Perl: 5.10.1 OS: linux Time: Thu Dec 11 14:38:11 2014 Message: ERROR: invalid input syntax for integer: "", SQL: 'INSERT INTO ps_quick_close (close_name, state_id, body, create_time, create_by, valid_id, article_type_id, change_time, change_by, comments, queue_id, subject, ticket_unlock, owner_id, pending_diff) VALUES (?, ?, ?, '2014-12-11 14:38:11' , ?, ?, ?, '2014-12-11 14:38:11' , ?, ?, ?, ?, ?, ?, ?)' RemoteAddress: 192.168.153.35 RequestURI: /otrs/index.pl Traceback (11798): Module: Kernel::System::QuickClose::QuickCloseAdd (v1.1.1.1) Line: 132 Module: Kernel::Modules::AdminQuickClose::Run (v1.1.1.1) Line: 175 Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.3.6) Line: 871 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 41 Module: (eval) (v1.99) Line: 204 Module: ModPerl::RegistryCooker::run (v1.99) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31 
:shock: :shock: :-?
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Add Note while Closing Ticket

Post by jojo »

you should update to OTRS4
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Add Note while Closing Ticket

Post by reneeb »

@PriteshP23 can you tell me what values you set? I use that addon since several years with no problems... and unfortunately the error message doesn't say anything about values passed to the database.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: Add Note while Closing Ticket

Post by PriteshP23 »

can you tell me what values you set?
You do not have the required permissions to view the files attached to this post.
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Add Note while Closing Ticket

Post by reneeb »

Does it work when you leave the "Owner" field blank?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: Add Note while Closing Ticket

Post by PriteshP23 »

No :(
Same error.
Can you tell what is the objective of this ?
" Unlock Ticket
Tickets are unlocked automatically on 'closed' states: YES/NO"

I am using OTRS 3.3.6 and your addon is for otrs 3.3.5.
I couldn't find for 3.3.6
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Add Note while Closing Ticket

Post by reneeb »

Strange...

QuickClose 3.3.5 can be used in any OTRS 3.3.x instance.

The name "QuickClose" was chosen for the initial version where tickets were always closed. But some feature requests came in to allow other ticket status as well. So you can say: Set this ticket to a pending state and unlock it.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: Add Note while Closing Ticket

Post by PriteshP23 »

So you can say: Set this ticket to a pending state and unlock it.
So, if i choose Unlock Ticket :
YES => Close Ticket
NO => Pending state and unlock it

Well, If i select YES, it allows to add the text. But I am not sure if it works in SAME manner when we do by click on Close and write by ourself.
After inserting 3 different texts:

Code: Select all

otrs=# select * from ps_quick_close;
 id |    close_name     | comments |      subject      |       body        | state_id | valid_id | queue_id | pending_diff | ticket_unlock | owner_id | article_type_id |     create_time
     | create_by |     change_time     | change_by 
----+-------------------+----------+-------------------+-------------------+----------+----------+----------+--------------+---------------+----------+-----------------+----------------
-----+-----------+---------------------+-----------
  2 | Spam              |          |                   | Spam              |        2 |        1 |        0 |            0 |             1 |        0 |               9 | 2014-12-11 16:0
2:12 |         1 | 2014-12-11 16:02:12 |         1
  3 | End Communication |          | End Communication | End Communication |        2 |        1 |        0 |            0 |             1 |        0 |               9 | 2014-12-11 16:1
0:58 |       361 | 2014-12-11 16:10:58 |       361
  1 | Double            |          | Double            | Double            |        2 |        1 |        0 |            0 |             1 |        0 |               9 | 2014-12-11 15:5
0:03 |         1 | 2014-12-11 16:27:57 | 
In other other words, i want to confirm that IF i choose Unlock Ticket: YES in QuickClose, can i have the same functionality as we click on close and its in close successfully state?
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Add Note while Closing Ticket

Post by reneeb »

You have to choose a state. So, choose "Yes" on "Unlock" and "Closed successful" on "New state".
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

[SOLVED] Add Note while Closing Ticket

Post by PriteshP23 »

You have to choose a state. So, choose "Yes" on "Unlock" and "Closed successful" on "New state".
@reneeb
That's what i was thinking and did the same. Now, i got solution. 8)
I am grateful to you for your time and avaliability.! :D
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: [SOLVED] Add Note while Closing Ticket

Post by PriteshP23 »

@reneeb

There is a problem of Ticket Owner. It keeps the previous person as a Owner of ticket even if other person do QuickClose. How to fix it ?

I enable it: QuickClose::QueueMove

Any idea?

Thanks !
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: [SOLVED] Add Note while Closing Ticket

Post by reneeb »

I'll have a look at it next week!
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: [SOLVED] Add Note while Closing Ticket

Post by PriteshP23 »

@reneeb
Its noted. Thanks a lot.
Merry Xmas !
Enjoy holidays :)
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: [SOLVED] Add Note while Closing Ticket

Post by PriteshP23 »

@reneeb

Do you have any updates?
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
Locked