Delete events or edit events

Moderator: crythias

Post Reply
aandstech
Znuny newbie
Posts: 3
Joined: 17 Sep 2010, 16:11
Znuny Version: 2.4.7

Delete events or edit events

Post by aandstech »

Is there anyway to change a setting so notes added to call are editable.
On ocasions I have posted a note and accountable time to wronge call is there anyway to delete this note or edit it?
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Delete events or edit events

Post by crythias »

It's likely not possible through the interface, simply because history is history, the safe thing to do is just create a new offset note (internal) explaining the adjustment.

If you still want to do it, BACKUP your database before attempting the following:

You could edit the article table directly in phpmyadmin (medium safe) or the mysql command line that lets you do dangerous things(beware!) If you ignore or misapply a WHERE clause, you could update the wrong thing.

So, let's say you zoom on the note you want to get. The URL says:
Action=AgentTicketZoom&TicketID=2&ArticleID=6
in the mysql command line:

Code: Select all

SELECT a_body from article where id=6
Is this the correct text?

Code: Select all

UPDATE  article SET  a_body =  'This was changed by aandstech. Incorrect entry.' WHERE  `article`.`id` =6
Unfortunately, you don't easily have an idea from ticket zoom (that I can tell), which note you applied time against. You can

Code: Select all

SELECT article_id, time_unit FROM time_accounting WHERE ticket_id=2
(2 is the number after TicketID= in the URL)

and then

Code: Select all

UPDATE time_accounting SET time_unit = '0' WHERE article_id='some number you got from the SELECT query'


DANGER: If you don't understand what you're doing here, you could do bad things to your data. The actions performed here are invisibly accomplished, irreversable, not logged and there's no way to know who did them.

Did I put enough disclaimer? Seriously, the best way to do this is to apply an offset note.

Edit: apparently the SQL Box is select-only. Good, and ... Oops. :)
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
meukmans
Znuny newbie
Posts: 47
Joined: 04 May 2011, 21:03
Znuny Version: 3

Re: Delete events or edit events

Post by meukmans »

But there is no option to delete a note , so its twice in 1 ticket.

Is it possible to make a delete note button or something ? Or does that give the same problem like changing a ticket ?
OTRS 3.0.7 On Windows Server 2008 R2
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Delete events or edit events

Post by crythias »

For forensic purposes, a delete button would be as problematic as an edit button.
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
meukmans
Znuny newbie
Posts: 47
Joined: 04 May 2011, 21:03
Znuny Version: 3

Re: Delete events or edit events

Post by meukmans »

This is really a problem for my organisation. We used different helpdesk tools and all had the change or delete option for notes.

Am I the only one who is missing this option ?

Is there really no workaround besides editing your SQL database ?
OTRS 3.0.7 On Windows Server 2008 R2
hoberion
Znuny newbie
Posts: 20
Joined: 25 Aug 2010, 09:07
Znuny Version: 3 beta 2

Re: Delete events or edit events

Post by hoberion »

its also a feature requested by our department :(
lamp, OTRS 3.0.latest:ITSM 3.latest (keeping up to date)
AD link to customers and agents
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Delete events or edit events

Post by jojo »

This can only be done via developmemt.
In OTRS there no option for changing this. (Changing notes really makes no sense, as people can hide their errors etc)
"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
hoberion
Znuny newbie
Posts: 20
Joined: 25 Aug 2010, 09:07
Znuny Version: 3 beta 2

Re: Delete events or edit events

Post by hoberion »

Changing notes really makes no sense, as people can hide their errors etc
we dont use our system for forensic purposes :)
besides you could have the "diff" available
lamp, OTRS 3.0.latest:ITSM 3.latest (keeping up to date)
AD link to customers and agents
srx308
Znuny newbie
Posts: 40
Joined: 22 Jun 2012, 11:10
Znuny Version: 3.2.6
Real Name: Florian

Re: Delete events or edit events

Post by srx308 »

meukmans wrote:This is really a problem for my organisation. We used different helpdesk tools and all had the change or delete option for notes.

Am I the only one who is missing this option ?

Is there really no workaround besides editing your SQL database ?
No, you are not the only one. We are missing such a feature, too.
OTRS 3.2.6 with PostgreSQL 8.3.23 on SLES 11
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: Delete events or edit events

Post by reneeb »

Then develop an add-on ;-) This shouldn't be too difficult.

In fact the "delete" part should be fairly simple. There is already an ArticleDelete() method (see http://otrs.perl-services.de/docs/otrs/ ... ticle.html). You just need to edit the template for the view where you want to have the delete button and change the frontend module to handle the subaction "ArticleDelete"...

The edit part is more difficult but doable. You should add a new frontend module and template where you can edit the article. In the backend module there is a method called "ArticleUpdate"...
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
igoralvarez
Znuny newbie
Posts: 44
Joined: 14 Oct 2015, 10:17
Znuny Version: 3.3.8

Re: Delete events or edit events

Post by igoralvarez »

I change in DDBB but i donw see in the interface, why??? i need to do something??? i reboot server and dont see the changes
Post Reply