Additional field in ticket list in Dashboard

Moderator: crythias

Locked
gob
Znuny newbie
Posts: 49
Joined: 18 Jan 2011, 15:45
Znuny Version: 3.0.4

Additional field in ticket list in Dashboard

Post by gob »

Hi

I have just upgraded from v 2.4.7 to 3.0.4.
It has all gone pretty smoothly apart from one small snag. On the old version I managed to add some extra columns to the ticket lists on the dashboard:

New Tickets: Add customer email Address

Open Tickets: Add customer Email address & Ticket Owner (Agent Name)


On OTRS version 3 I cannot find any way to do this.
I thought it might be something in DashboardTicketGeneric.pm but with my limited programming skills nothing jumps out at me in that file.

Is it possible on this version of OTRS?

thanks
Gordon
gob
Znuny newbie
Posts: 49
Joined: 18 Jan 2011, 15:45
Znuny Version: 3.0.4

Re: Additional field in ticket list in Dashboard

Post by gob »

OK, I managed to work out how to do it - it is virtually the same as the tweak I made in v. 2.4.7.

In Kernel/Output/HTML/Standard/AgentDashboardTicketGeneric.dtl amend the DataTable starting at line 91 to:

Code: Select all

<table class="DataTable">
    <tbody>
<!-- dtl:block:ContentLargeTicketGenericRow -->
        <tr class="MasterAction">
<!-- dtl:block:ContentLargeTicketGenericRowMeta -->
            <td class="$QData{"ClassTable"} Flags" 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 -->
            <td class="W10pc">
                <a href="$Env{"Baselink"}Action=AgentTicketZoom;TicketID=$Data{"TicketID"}" title="$QData{"Title"}" class="AsBlock MasterActionLink">$Data{"TicketNumber"}</a>
            </td>
            <td class="W40pc">
                <div title="$QData{"Title"}">$QData{"Title","70"}</div>
            </td>
	     <td class="W10pc">
                <div title="$QData{"Owner"}">$QData{"Owner","20"}</div>
            </td>
            <td class="W10pc">
                <a href="$Env{"Baselink"}Action=AgentTicketCustomer&TicketID=$QData{"TicketID"}" onmouseover="window.status='$JSText{"Customer history"}'; returntrue;" onmouseout="window.status='';"><div title="$QData{"CustomerUserID"}">$QData{"CustomerID","40"}</div></a>
            </td>
            <td>$QData{"Time"}</td>
        </tr>
<!-- dtl:block:ContentLargeTicketGenericRow -->
<!-- dtl:block:ContentLargeTicketGenericNone -->
        <tr>
            <td>
                $Text{"none"}
            </td>
        </tr>
<!-- dtl:block:ContentLargeTicketGenericNone -->
    </tbody>
</table>
jlbrantley
Znuny newbie
Posts: 1
Joined: 15 Apr 2011, 18:25
Znuny Version: 3.0.6
Real Name: Jerry Brantley
Company: Colour Concepts, Inc

Re: Additional field in ticket list in Dashboard

Post by jlbrantley »

Thanks, I was looking to add the OWNER on dashboard as well
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Additional field in ticket list in Dashboard

Post by crythias »

http://forums.otrs.org/viewtopic.php?f=60&t=5156
"Owner" is another acceptable field, though it will by default show a username.
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
shining01
Znuny expert
Posts: 270
Joined: 07 Apr 2011, 08:02
Znuny Version: 6.0.4
Real Name: Tom

Re: Additional field in ticket list in Dashboard

Post by shining01 »

it works very well, but i only see the customer number and not the customer name.
Could you help me please? Thanks a lot
Linux Debian Jessie
DB: postgres
shining01
Znuny expert
Posts: 270
Joined: 07 Apr 2011, 08:02
Znuny Version: 6.0.4
Real Name: Tom

Re: Additional field in ticket list in Dashboard

Post by shining01 »

Oh i have found the answer:

Code: Select all

<td class="W10pc">
                <a href="$Env{"Baselink"}Action=AgentTicketCustomer&TicketID=$QData{"TicketID"}" onmouseover="window.status='$JSText{"Customer history"}'; return true;" onmouseout="window.status='';">
					<div title="$QData{"CustomerUserID"}">
						$QData{"CustomerUserID","40"}
					</div>
				</a>
            </td>
Linux Debian Jessie
DB: postgres
Locked