Delete events or edit events
Moderator: crythias
Delete events or edit events
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?
On ocasions I have posted a note and accountable time to wronge call is there anyway to delete this note or edit it?
-
- 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
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:
Is this the correct text?
Unfortunately, you don't easily have an idea from ticket zoom (that I can tell), which note you applied time against. You can
(2 is the number after TicketID= in the URL)
and then
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.
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
Code: Select all
UPDATE article SET a_body = 'This was changed by aandstech. Incorrect entry.' WHERE `article`.`id` =6
Code: Select all
SELECT article_id, time_unit FROM time_accounting WHERE ticket_id=2
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
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
Re: Delete events or edit events
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 ?
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
-
- 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
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
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
Re: Delete events or edit events
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 ?
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
Re: Delete events or edit events
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
AD link to customers and agents
Re: Delete events or edit events
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)
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Delete events or edit events
we dont use our system for forensic purposesChanging notes really makes no sense, as people can hide their errors etc
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
AD link to customers and agents
Re: Delete events or edit events
No, you are not the only one. We are missing such a feature, too.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 ?
OTRS 3.2.6 with PostgreSQL 8.3.23 on SLES 11
-
- 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
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"...
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny newbie
- Posts: 44
- Joined: 14 Oct 2015, 10:17
- Znuny Version: 3.3.8
Re: Delete events or edit events
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