Hello,
When I click on Tickets and then in QueueView I click on the queue there are several colums:
Bulk::priority::New Article::TICKET#::AGE::FROM / SUBJECT.......
The Priority is just a Grey box and only when you hover your mouse over it will it tell you the priority, I would like to be able to change that grey box to:
1-color code the box to priority
a-priority 1 = red
priority 2 = yellow
priority 3 = green
or
2-just display the priority name
How can I do this?
Dennis
[SOLVED] Display priority and not just grey box in QueueView
Moderator: crythias
-
- Znuny newbie
- Posts: 16
- Joined: 29 Sep 2011, 18:03
- Znuny Version: 3.0.11
- Real Name: Dennis
- Company: BBH
[SOLVED] Display priority and not just grey box in QueueView
Last edited by denniskn on 20 Oct 2011, 19:28, edited 1 time in total.
Dennis
OTRS 3.0.11 CentOS6 64Bit
OTRS 3.0.11 CentOS6 64Bit
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Display priority and not just a grey box in QueueView
I look at the URI... AgentTicketQueue seems to be appropriate.
Right-click (in Chrome) on the priority color, Inspect Element ...
I see there's a <td> with Flags Fixed and Flag small and title, and a PriorityID-5
This has to be in the .dtls, which will be in Kernel\Output\HTML\Standard (or your current theme, recommended).
hm. AgentTicketQueue.dtl seems to be not adequate, but AgentTicketOverviewSmall.dtl seems more reasonable. (I see that "S" is selected in the QueueView)
Unfortunately, the priority and unread get generated outside of here, because the code that covers it is:
This unfortunately runs twice -- once for priority and once for new article notification.
This comes from HTML\TicketOverviewSmall.pm
TicketMetaItems is important. They come from HTML\LayoutTicket.pm
This shows priority and new article.
The CSS for this is in otrs/var/httpd/htdocs/skins/Agent/default(or your current skin)/css/Core.default.css around line 450.
Hope this helps. I know it's a bit longwinded, but in case someone wants to know how I find out about things, they might be able to follow along.
Right-click (in Chrome) on the priority color, Inspect Element ...
I see there's a <td> with Flags Fixed and Flag small and title, and a PriorityID-5
This has to be in the .dtls, which will be in Kernel\Output\HTML\Standard (or your current theme, recommended).
hm. AgentTicketQueue.dtl seems to be not adequate, but AgentTicketOverviewSmall.dtl seems more reasonable. (I see that "S" is selected in the QueueView)
Unfortunately, the priority and unread get generated outside of here, because the code that covers it is:
Code: Select all
<!-- dtl:block:ContentLargeTicketGenericRowMeta -->
<td class="$QData{"ClassTable"} Fixed" title="$Text{"$Data{"Title"}"}">
<!-- dtl:block:ContentLargeTicketGenericRowMetaImage -->
<div class="$QData{"Class"} Small" title="$Text{"$Data{"Title"}"}">
<span class="$QData{"ClassSpan"}">$Text{"$Data{"Title"}"}</span>
</div>
<!-- dtl:block:ContentLargeTicketGenericRowMetaImage -->
</td>
<!-- dtl:block:ContentLargeTicketGenericRowMeta -->
This comes from HTML\TicketOverviewSmall.pm
Code: Select all
my @TicketMetaItems = $Self->{LayoutObject}->TicketMetaItems(
Ticket => \%Article,
);
for my $Item (@TicketMetaItems) {
$Self->{LayoutObject}->Block(
Name => 'ContentLargeTicketGenericRowMeta',
Data => $Item,
);
if ($Item) {
$Self->{LayoutObject}->Block(
Name => 'ContentLargeTicketGenericRowMetaImage',
Data => $Item,
);
}
}
This shows priority and new article.
Code: Select all
if (1) {
push @Result, {
# Image => $Image,
Title => $Param{Ticket}->{Priority},
Class => 'Flag', #This is the class of the Priority Div. If it's not Flag, it'll show the text. or you should check css.
ClassSpan => 'PriorityID-' . $Param{Ticket}->{PriorityID},
ClassTable => 'Flags',
};
}
Hope this helps. I know it's a bit longwinded, but in case someone wants to know how I find out about things, they might be able to follow along.
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 newbie
- Posts: 16
- Joined: 29 Sep 2011, 18:03
- Znuny Version: 3.0.11
- Real Name: Dennis
- Company: BBH
Re: Display priority and not just a grey box in QueueView
If I go to
/opt/otrs/var/httpd/htdocs/skins/Agent/default/css
and do
vi Core.Default.css
I turn on number ( :set number )
and go to that area I see:
I am using 3.0.10 am I looking in the wrong area?
/opt/otrs/var/httpd/htdocs/skins/Agent/default/css
and do
vi Core.Default.css
I turn on number ( :set number )
and go to that area I see:
Code: Select all
420 .MessageBox.Error {
421 border-color: #A6281C;
422 background: #F03432;
423 }
424
425 .MessageBox.Error p {
426 border-color: #F25146;
427 }
428
429 .MessageBox.Error p,
430 .MessageBox.Error a {
431 color: #000;
432 }
433
434 .MessageBox.Confirmation {
435 border-color: #049E35;
436 background: #1AEE47;
437 }
438
439 .MessageBox.Confirmation p {
440 border-color: #36F374;
441 }
442
443 .MessageBox.Confirmation p,
444 .MessageBox.Confirmation a {
445 color: #044016;
446 }
447
448 /**
449 * @subsection Flag
450 */
451 .Flag {
452 background: transparent url(../img/flag_shadow.png) no-repeat scroll 0 0;
453 height: 18px;
454 width: 24px;
455 }
456
457 .Flag.Small {
458 width: 17px;
459 height: 10px;
460 background-position: bottom right;
461 }
462
463 .Flag span {
464 display: block;
465 height: 16px;
466 margin-right: 2px;
467 text-indent: -9999px;
468 cursor: pointer;
469 /* set a default color for priorities */
470 background-color: #cdcdcd;
471 }
472
473 .Flag.Small span {
474 height: 8px;
475 }
Dennis
OTRS 3.0.11 CentOS6 64Bit
OTRS 3.0.11 CentOS6 64Bit
-
- Znuny newbie
- Posts: 16
- Joined: 29 Sep 2011, 18:03
- Znuny Version: 3.0.11
- Real Name: Dennis
- Company: BBH
Re: Display priority and not just a grey box in QueueView
I found it, you were trying to get me to look at the file here:
HTML\LayoutTicket.pm
I was looking at the wrong file. Thanks for the help.
Dennis
HTML\LayoutTicket.pm
I was looking at the wrong file. Thanks for the help.
Dennis
Dennis
OTRS 3.0.11 CentOS6 64Bit
OTRS 3.0.11 CentOS6 64Bit
-
- Znuny newbie
- Posts: 16
- Joined: 29 Sep 2011, 18:03
- Znuny Version: 3.0.11
- Real Name: Dennis
- Company: BBH
Re: Display priority and not just a grey box in QueueView
Crythias ,
That worked, on S(small) it is perfect, on M / L it is not but that is ok, now I know where to look and should be able to fix it myself.
You are the Man!
Dennis
That worked, on S(small) it is perfect, on M / L it is not but that is ok, now I know where to look and should be able to fix it myself.
You are the Man!
Dennis
Dennis
OTRS 3.0.11 CentOS6 64Bit
OTRS 3.0.11 CentOS6 64Bit
Re: [SOLVED] Display priority and not just grey box in Queue
hi!
i want to apply the same strip color as it defined it in priority in the dashboard wigdet..
if you see in pic attached the priority color is blue.so i wanted to apply same blue color to that ticket in Dashboard.
i want to apply the same strip color as it defined it in priority in the dashboard wigdet..
if you see in pic attached the priority color is blue.so i wanted to apply same blue color to that ticket in Dashboard.
You do not have the required permissions to view the files attached to this post.
OTRS 3.1.X