Use case: Tickets get routed to development group, junior dev person adds a note with incorrect information, senior dev person spots the error and wants to modify or flag as a bad aritcle.
Is it possible to mark an article as invalid so it doesn't show?
Could we create an Article dynamic field that could be used in CSS to show that article in a different color?
The fear is if there are a lot of articles in a ticket, someone might not go to the bottom and see the earlier bad note and try to use those bad instructions.
Tom
Article Question
Moderator: crythias
-
- 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: Article Question
I would create a dynamic field (text) where the senior can add a short note why this is a bad article. Then create a customized JavaScript that checks for each article if that field is not empty. If so, set the background-color of the article. It's no rocket science.
For the JavaScript, I recomment to use the jQuery framework that comes with OTRS. It could look like this (untestet)
Of course, you have to replace ##TITLE_OF_DYNAMIC_FIELD## with the appropriate value...
For the JavaScript, I recomment to use the jQuery framework that comes with OTRS. It could look like this (untestet)
Code: Select all
$('a[name^="article"]').each(function(){
var ErrorField = $(this).find('p[title="##TITLE_OF_DYNAMIC_FIELD##"]');
if ( ErrorField && ErrorField.html() ) {
$(this).parent().css('background-color','red');
}
});
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