Reset Owner Link
Reset Owner Link
Hi,
I'm trying to add a link (for example like the link Spam) to Frontend::Agent::Ticket::MenuModule that will reset the owner of the ticket to OTRS Admin just like ForceOwnerReset.pm does but without moving the ticket to another queue.
I've managed to add the link but think I can't use the ForceOwnerModule for this and have to create a new module.
Any help how to approach this?
Thanks
I'm trying to add a link (for example like the link Spam) to Frontend::Agent::Ticket::MenuModule that will reset the owner of the ticket to OTRS Admin just like ForceOwnerReset.pm does but without moving the ticket to another queue.
I've managed to add the link but think I can't use the ForceOwnerModule for this and have to create a new module.
Any help how to approach this?
Thanks
Re: Reset Owner Link
BUMP
-
- 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: Reset Owner Link
This should help, though it is untested... https://gist.github.com/reneeb/7788a5a8579bc12eb03b
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Reset Owner Link
Thanks! will try it.
Re: Reset Owner Link
Hi I've got round to test your code and I get the link, but it says "We are sorry, you do not have permissions anymore to access this ticket in its current state."
The user has full read/write to all groups.
Running it on OTRS 4.0.1
Here's the log
Wed Dec 3 15:12:06 2014 notice OTRS-CGI-09 Permission denied (UserID: 2 'ro' on TicketID: $QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 Need QueueID!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 Column 'queue_id' cannot be null, SQL: 'INSERT INTO ticket_history (name, history_type_id, ticket_id, article_id, queue_id, owner_id, priority_id, state_id, type_id, create_time, create_by, change_time, change_by) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?,
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
The user has full read/write to all groups.
Running it on OTRS 4.0.1
Here's the log
Wed Dec 3 15:12:06 2014 notice OTRS-CGI-09 Permission denied (UserID: 2 'ro' on TicketID: $QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 Need QueueID!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 Column 'queue_id' cannot be null, SQL: 'INSERT INTO ticket_history (name, history_type_id, ticket_id, article_id, queue_id, owner_id, priority_id, state_id, type_id, create_time, create_by, change_time, change_by) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?,
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Reset Owner Link
also Generic Agent.
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
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
-
- 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: Reset Owner Link
For OTRS 4.x you have to replace with
Code: Select all
$QData{"TicketID"}
Code: Select all
[% Data.TicketID | html %]
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny expert
- Posts: 213
- Joined: 04 Nov 2012, 23:58
- Znuny Version: OTRS 4.x
- Real Name: Esteban
- Company: NORTON DE COLOMBIA
Re: Reset Owner Link
it is because OTRS 4 no longer uses $QData{"TicketID"} you should have specified your version first so reneeb would have gave you a version according to your version.SuperDOS wrote:Hi I've got round to test your code and I get the link, but it says "We are sorry, you do not have permissions anymore to access this ticket in its current state."
The user has full read/write to all groups.
Running it on OTRS 4.0.1
Here's the log
Wed Dec 3 15:12:06 2014 notice OTRS-CGI-09 Permission denied (UserID: 2 'ro' on TicketID: $QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 Need QueueID!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 Column 'queue_id' cannot be null, SQL: 'INSERT INTO ticket_history (name, history_type_id, ticket_id, article_id, queue_id, owner_id, priority_id, state_id, type_id, create_time, create_by, change_time, change_by) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?,
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
Wed Dec 3 15:12:06 2014 error OTRS-CGI-09 No such TicketID ($QData{)!
in your xml
change
Code: Select all
$QData{"TicketID"}
Code: Select all
[% Data.TicketID | html %]
Re: Reset Owner Link
I just recently upgraded to OTRS 4 on our test environment, after applying the changes to the XML it works just fine.
Thanks!
Thanks!