[SOLVED]create a page to enter in a ticket number and delete

Moderator: crythias

Locked
denniskn
Znuny newbie
Posts: 16
Joined: 29 Sep 2011, 18:03
Znuny Version: 3.0.11
Real Name: Dennis
Company: BBH

[SOLVED]create a page to enter in a ticket number and delete

Post by denniskn »

Hello,

I am trying to make it so a few of the users can delete a ticket if they need to, but I don't want to give them access to admin page.

I have searched the forums and found out how to go into the admin section and Generic Agent and create the job to delete a ticket but I dont want to give the users access to the admin page..

What I am looking for is how to creat a page
http://otrs/otrs/delete_ticket.pl

when you ope it it asks for a ticket number
you enter in the ticket number and click ok
it checks for the ticket and asks if you are sure, you click ok
it deletes the ticket and goes back to the main page.

I have looked at /opt/otrs/bin/otrs.GenericAgent.pl and also at /opt/otrs/Kernel/Config/GenericAgent.pm.examples but I dont get how to put that into a web page.

If you look at the DB and look at tables with ticket in the name you get a bunch of tables.
If i just drop the row with the ticket# in it will it leave orphaned data in other tables?

Can anyone help me?



Dennis
Last edited by denniskn on 27 Oct 2011, 18:20, edited 1 time in total.
Dennis
OTRS 3.0.11 CentOS6 64Bit
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to create a page to enter in a ticket number and del

Post by crythias »

Edit Config Settings in Ticket -> Frontend::Agent::Ticket::MenuModule
Ticket::Frontend::MenuModule###460-Delete
KeyContent

Shows a link in the menu to delete a ticket in the ticket zoom view of the agent interface. Additional access control to show or not show this link can be done by using Key "Group" and Content like "rw:group1;move_into:group2".
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
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to create a page to enter in a ticket number and del

Post by jojo »

You'll need a queue for this (and move the tickets via the described link to this queue)
"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
Locked